mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
xen: branch for v5.8-rc5
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRTLbB6QfY48x44uB6AXGG7T9hjvgUCXwm1dAAKCRCAXGG7T9hj vkiYAQC0oD78UgzRx2j+FoYRBZotNNZbO07PZ3MhKuUWnXOF3AEA5Y2oJpMJgTxN RKxSoIlwjxNXxhWJThOiGpBiUSKmcAY= =1A2B -----END PGP SIGNATURE----- Merge tag 'for-linus-5.8b-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip Pull xen fix from Juergen Gross: "Just one fix of a recent patch (double free in an error path)" * tag 'for-linus-5.8b-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: xen/xenbus: Fix a double free in xenbus_map_ring_pv()
This commit is contained in:
commit
0aea6d5c5b
@ -693,10 +693,8 @@ static int xenbus_map_ring_pv(struct xenbus_device *dev,
|
||||
bool leaked;
|
||||
|
||||
area = alloc_vm_area(XEN_PAGE_SIZE * nr_grefs, info->ptes);
|
||||
if (!area) {
|
||||
kfree(node);
|
||||
if (!area)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
for (i = 0; i < nr_grefs; i++)
|
||||
info->phys_addrs[i] =
|
||||
|
Loading…
Reference in New Issue
Block a user