From: James Hogan Date: Tue, 16 Oct 2012 08:43:08 +0000 (+0100) Subject: mmc: dw_mmc: fix multiple drv_data NULL dereferences X-Git-Tag: v3.7-rc5~8^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb27a843de9e3a0a2e4b7e631da4679d38f49cee;p=pandora-kernel.git mmc: dw_mmc: fix multiple drv_data NULL dereferences 800d78bfccb3d ("mmc: dw_mmc: add support for implementation specific callbacks") -- merged in v3.7-rc1 -- introduced multiple NULL pointer dereferences when the default dw_mci_pltfm_probe() is used, as it sets host->drv_data to NULL, and that's only checked against NULL in 1 out of the 7 cases where it is dereferenced. Signed-off-by: James Hogan Acked-by: Jaehoon Chung Acked-by: Will Newton Signed-off-by: Chris Ball --- Reading git-diff-tree failed