xen-blkback: fix leak on grant map error path
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 15 Sep 2014 09:55:27 +0000 (11:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 16:59:51 +0000 (08:59 -0800)
commit63a83a42f14707f9c1be91ccbda8aa8bf12ecd53
tree967f7178c7e051360e7cb67530c90fdd77b44878
parent19a0ff53ff6697bff78b7209a85a89717d7fda5e
xen-blkback: fix leak on grant map error path

commit 61cecca865280bef4f8a9748d0a9afa5df351ac2 upstream.

Fix leaking a page when a grant mapping has failed.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reported-and-Tested-by: Tao Chen <boby.chen@huawei.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/xen-blkback/blkback.c