Skip to content
Snippets Groups Projects
Commit 2697eff1 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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: default avatarWolfgang Denk <wd@denx.de>
parent 3699c28e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment