greybus: sdio: check number of blocks in transfer
authorRui Miguel Silva <rui.silva@linaro.org>
Thu, 2 Jul 2015 18:11:35 +0000 (19:11 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 6 Jul 2015 18:15:42 +0000 (11:15 -0700)
commit73f4a5217968d51d9685732512d268c71b78a347
tree7a02736f51756cbc7f2728459804314a94f0af7a
parent882edf59fcfa400547bdb509e67f2266471f838d
greybus: sdio: check number of blocks in transfer

Before initiating a transfers, check if the command (for single block)
match the number of blocks in the request.

While at it, fix also a missing break.

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