greybus: sdio: fix tear-down use-after-free
authorJohan Hovold <johan@hovoldconsulting.com>
Mon, 14 Sep 2015 18:19:03 +0000 (20:19 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 04:57:25 +0000 (21:57 -0700)
commite5265266ec6360702feb6ff69d1aec9e318ae1f6
treef873e3cde621b50dfd1b97067b443e0feb1870d3
parentd7849bffc622b3405ef226364d67bb81af48c152
greybus: sdio: fix tear-down use-after-free

The mmc-driver private data must not be accessed after mmc_free_host()
has released it.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/sdio.c