[MTD] map_rom has NULL erase pointer
commit5f877607cdfe8b60bf96fb96e527e0ce2a21e68b
authorAlan Cox <alan@redhat.com>
Sun, 11 Jan 2009 19:52:19 +0000 (11 19:52 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 11 Jan 2009 19:56:46 +0000 (11 19:56 +0000)
tree5e13766a4d7df3e7032b1b26e498099c04b06c16
parent57c1a24ee276a33190008243f986419e122c0dea
[MTD] map_rom has NULL erase pointer

Which means if inftl or similar are loaded with it (which is a dumb thing
to do admittedly) it may oops.

Closes #8108

[dwmw2: change error to -EROFS to match write-protected flash]
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/chips/map_rom.c