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)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:12:11 +0000 (19:12 -0400)
commit867af24da06080ffb12a2d0614e046bce917012e
treee52d55954e44c8c1fc3c643c6c911d6818bfa4b5
parent054cf47d81e14bb77da7cc6eb72f317ac70440ed
scsi: storvsc: Fix a bug in copy_from_bounce_buffer()

[ Upstream commit 8de580742fee8bc34d116f57a20b22b9a5f08403 ]

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/scsi/storvsc_drv.c