From: Guennadi Liakhovetski Date: Tue, 24 Apr 2012 15:56:29 +0000 (+0200) Subject: mmc: cd-gpio: protect against NULL context in mmc_cd_gpio_free() X-Git-Tag: v3.5-rc1~85^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e9f480bb553d39ee06ccd45639ba7a5446a7b81;p=pandora-kernel.git mmc: cd-gpio: protect against NULL context in mmc_cd_gpio_free() Do not oops, even if mmc_cd_gpio_free() is mistakenly called on a driver cleanup path, even though a previous call to mmc_cd_gpio_request() failed. Signed-off-by: Guennadi Liakhovetski [stable@: please apply to 3.3-stable] Cc: stable Signed-off-by: Chris Ball --- Reading git-diff-tree failed