mmc: block: fix boot partition switch error path
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 23 Sep 2011 09:48:20 +0000 (12:48 +0300)
committerChris Ball <cjb@laptop.org>
Wed, 26 Oct 2011 20:32:14 +0000 (16:32 -0400)
commit0d7d85ca6e5dc7bd426d1d5989a44e93e8c7a0d3
tree08d4f1be8e4bdab4053721c982b47ccb20926d5d
parentb87d8dbf6c410b5f2d9b6893c85baa06aa131c7c
mmc: block: fix boot partition switch error path

In the case of a switch error, do not update partition config as though
the switch succeeded, and ensure blk_end_request is called on the
failed request.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Andrei Warkentin <andrey.warkentin@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c