aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <[email protected]>2009-03-10 19:55:55 +0000
committerLinus Torvalds <[email protected]>2009-03-10 22:55:11 +0000
commitd58ab5cf09679d8cb4824e22cae900c0eab5ab31 (patch)
tree090e82a516fe8db760a1b7514ed072bb458c1e2f /lib/bitmap.c
parentintel-agp: fix a panic with 1M of shared memory, no GTT entries (diff)
downloadkernel-d58ab5cf09679d8cb4824e22cae900c0eab5ab31.tar.gz
kernel-d58ab5cf09679d8cb4824e22cae900c0eab5ab31.zip
mtd: physmap: fix NULL pointer dereference in error path
commit e480814f138cd5d78a8efe397756ba6b6518fdb6 ("[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]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions