summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorWenwen Wang <wenwen@cs.uga.edu>2019-08-11 12:23:22 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-06 10:23:22 +0200
commit2a7a7ff625cd4121c6d73356243837cb384ff212 (patch)
treec84334b945467ad4da26c2dd068930f3add1ad0b /arch
parent82fcf8a5d8f721b4cb8a04c48f7e45a0e3a49345 (diff)
downloadlinux-stable-2a7a7ff625cd4121c6d73356243837cb384ff212.tar.gz
linux-stable-2a7a7ff625cd4121c6d73356243837cb384ff212.tar.bz2
linux-stable-2a7a7ff625cd4121c6d73356243837cb384ff212.zip
xen/blkback: fix memory leaks
[ Upstream commit ae78ca3cf3d9e9f914bfcd0bc5c389ff18b9c2e0 ] In read_per_ring_refs(), after 'req' and related memory regions are allocated, xen_blkif_map() is invoked to map the shared frame, irq, and etc. However, if this mapping process fails, no cleanup is performed, leading to memory leaks. To fix this issue, invoke the cleanup before returning the error. Acked-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions