commit | 0e9f480bb553d39ee06ccd45639ba7a5446a7b81 | [log] [tgz] |
---|---|---|
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | Tue Apr 24 17:56:29 2012 +0200 |
committer | Chris Ball <cjb@laptop.org> | Tue Apr 24 12:21:22 2012 -0400 |
tree | b6de3a76c45c5fdfc9a6d1229c77906d067b853a | |
parent | 0dd1bfeb6cc89467261cc62ca81e0ac5da78ec0a [diff] |
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 <g.liakhovetski@gmx.de> [stable@: please apply to 3.3-stable] Cc: stable <stable@vger.kernel.org> Signed-off-by: Chris Ball <cjb@laptop.org>