Skip to content

Commit

Permalink
Merge tag 'for-linus-5.8b-rc5-tag' of git://git.kernel.org/pub/scm/li…
Browse files Browse the repository at this point in the history
…nux/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()
  • Loading branch information
Linus Torvalds committed Jul 11, 2020
2 parents 997c443 + ba8c423 commit 0aea6d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/xen/xenbus/xenbus_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] =
Expand Down

0 comments on commit 0aea6d5

Please sign in to comment.