greybus: sdio: correct the usage of mmc request in work queues handler
authorPhong Tran <tranmanphong@gmail.com>
Fri, 26 Jun 2015 14:05:13 +0000 (21:05 +0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 30 Jun 2015 01:06:08 +0000 (18:06 -0700)
commit93a99e8a105aeaec432995196c21ffedcd0c0cad
tree28195c68e6d23847316fadf4e9bb5ca39ce40cb3
parent9b86bdf96ef79e5e286628cb2e3ea6639db71904
greybus: sdio: correct the usage of mmc request in work queues handler

The mmc request should assigned before use. Then
It should avoid freeing before using in mmc_request_done().

Signed-off-by: Phong Tran <tranmanphong@gmail.com>
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
Reviewed-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/sdio.c