commit | 2697eff1af136c6424c065cba994aa9aceadbcd1 | [log] [tgz] |
---|---|---|
author | Wolfgang Denk <wd@denx.de> | Wed Apr 28 10:53:47 2010 +0200 |
committer | Wolfgang Denk <wd@denx.de> | Wed Apr 28 10:53:47 2010 +0200 |
tree | 916595beae9ff3063e15b7be9ac5dec13651558f | |
parent | 3699c28e6d16b563629c285311a0ce62a2c4c5d0 [diff] |
mtdparts: fix write through NULL pointer The "mtdparts add" command wrote through a NULL pointer - on many systems this went unnoticed (PowerPC has writable RAM there, some ARM systems have ROM where a write has no effect), but on arm1136 (i.MX31) it crashed the system. Add appropriate checks. Signed-off-by: Wolfgang Denk <wd@denx.de>