]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mtdparts: fix write through NULL pointer
authorWolfgang Denk <wd@denx.de>
Wed, 28 Apr 2010 08:53:47 +0000 (10:53 +0200)
committerWolfgang Denk <wd@denx.de>
Wed, 28 Apr 2010 08:53:47 +0000 (10:53 +0200)
commit2697eff1af136c6424c065cba994aa9aceadbcd1
tree916595beae9ff3063e15b7be9ac5dec13651558f
parent3699c28e6d16b563629c285311a0ce62a2c4c5d0
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>
common/cmd_mtdparts.c