greybus: sdio: fix call to stop command if no data exist
authorRui Miguel Silva <rui.silva@linaro.org>
Thu, 2 Jul 2015 18:11:33 +0000 (19:11 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 6 Jul 2015 18:15:42 +0000 (11:15 -0700)
commit7a5cd5aea29a6fa0d99fb3b667b96b8d5f4e596c
tree795c417753c813f7ace5b93aa43a2d23603b0d04
parent08ccc9be680debdeb9eb2dcaa83c5fc7cd71f487
greybus: sdio: fix call to stop command if no data exist

If data is not available the stop command could dereference NULL.
Fetch the stop command directly from the request instead.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/sdio.c