Loading drivers/xen/gntdev.c +3 −1 Original line number Diff line number Diff line Loading @@ -662,7 +662,7 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma) if (map->flags) { if ((vma->vm_flags & VM_WRITE) && (map->flags & GNTMAP_readonly)) return -EINVAL; goto out_unlock_put; } else { map->flags = GNTMAP_host_map; if (!(vma->vm_flags & VM_WRITE)) Loading Loading @@ -700,6 +700,8 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma) spin_unlock(&priv->lock); return err; out_unlock_put: spin_unlock(&priv->lock); out_put_map: if (use_ptemod) map->vma = NULL; Loading Loading
drivers/xen/gntdev.c +3 −1 Original line number Diff line number Diff line Loading @@ -662,7 +662,7 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma) if (map->flags) { if ((vma->vm_flags & VM_WRITE) && (map->flags & GNTMAP_readonly)) return -EINVAL; goto out_unlock_put; } else { map->flags = GNTMAP_host_map; if (!(vma->vm_flags & VM_WRITE)) Loading Loading @@ -700,6 +700,8 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma) spin_unlock(&priv->lock); return err; out_unlock_put: spin_unlock(&priv->lock); out_put_map: if (use_ptemod) map->vma = NULL; Loading