From: H Hartley Sweeten Date: Tue, 20 Oct 2009 16:23:33 +0000 (-0400) Subject: mtd: Fix compile failure and error path in physmap.c X-Git-Tag: v2.6.33-rc1~66^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ce110ac19bc88b82e3feacfbb3a2ee08a07fe22;p=pandora-kernel.git mtd: Fix compile failure and error path in physmap.c Commit 4b56ffcacee937a85bf39e14872dd141e23ee85f ("mtd: Fix kernel NULL pointer dereference in physmap.c") introduced a couple of bugs. It neglected to run the loop of map_destroy() calls in physmap_flash_remove(), if !info->cmtd, which would happen if that function was called to clean up errors during probe. It also failed to compile if CONFIG_MTD_PARTITIONS was not defined. Reported-By: Atsushi Nemoto Signed-off-by: H Hartley Sweeten Signed-off-by: David Woodhouse --- Reading git-diff-tree failed