scsi: storvsc: Fix a bug in copy_from_bounce_buffer()
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 27 Mar 2015 07:27:18 +0000 (00:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:01:55 +0000 (22:01 +0200)
commitd276bf763d572e4f5f675f092c1f3ed82ebd4873
treeac659f9560e1bef9c42f70d426e1c58653cdf446
parentfb39546cc50266e4420ed831ea3ce481eacc1467
scsi: storvsc: Fix a bug in copy_from_bounce_buffer()

commit 8de580742fee8bc34d116f57a20b22b9a5f08403 upstream.

We may exit this function without properly freeing up the maapings
we may have acquired. Fix the bug.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/storvsc_drv.c