Files
linux/drivers/mtd
Atsushi Nemoto d58ab5cf09 mtd: physmap: fix NULL pointer dereference in error path
commit e480814f13 ("[MTD] [MAPS] physmap:
fix wrong free and del_mtd_{partition,device}") introduces a NULL pointer
dereference in physmap_flash_remove when called from the error path in
physmap_flash_probe (if map_probe failed).

Call del_mtd_{partition,device} only if info->cmtd was not NULL.

Reported-by: pHilipp Zabel <[email protected]>
Signed-off-by: Atsushi Nemoto <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2009-03-10 15:55:11 -07:00
..
2009-01-27 16:54:41 +02:00
2008-06-04 17:50:17 +01:00
2008-10-21 07:48:38 -04:00
2008-06-04 17:50:17 +01:00
2008-06-04 17:50:17 +01:00
…