diff --git a/drivers/xen/gntalloc.c b/drivers/xen/gntalloc.c index e2400c8963fa6ed8f92198c0731142ff646bd684..934985d14c2459f6893a8b1c4712b98207830d8a 100644 --- a/drivers/xen/gntalloc.c +++ b/drivers/xen/gntalloc.c @@ -525,6 +525,7 @@ static int gntalloc_mmap(struct file *filp, struct vm_area_struct *vma) rv = -ENOENT; pr_debug("%s: Could not find grant reference", __func__); + kfree(vm_priv); goto out_unlock; }