diff options
author | Wolfgang Denk <wd@denx.de> | 2010-04-28 10:53:47 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-04-28 10:53:47 +0200 |
commit | 2697eff1af136c6424c065cba994aa9aceadbcd1 (patch) | |
tree | 916595beae9ff3063e15b7be9ac5dec13651558f /common/cmd_bmp.c | |
parent | 3699c28e6d16b563629c285311a0ce62a2c4c5d0 (diff) | |
download | u-boot-imx-2697eff1af136c6424c065cba994aa9aceadbcd1.zip u-boot-imx-2697eff1af136c6424c065cba994aa9aceadbcd1.tar.gz u-boot-imx-2697eff1af136c6424c065cba994aa9aceadbcd1.tar.bz2 |
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>
Diffstat (limited to 'common/cmd_bmp.c')
0 files changed, 0 insertions, 0 deletions