diff options
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r-- | drivers/scsi/sg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 9c5c5f2b3962..be2c9a6561ff 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -1257,7 +1257,7 @@ sg_mmap(struct file *filp, struct vm_area_struct *vma) | |||
1257 | } | 1257 | } |
1258 | 1258 | ||
1259 | sfp->mmap_called = 1; | 1259 | sfp->mmap_called = 1; |
1260 | vma->vm_flags |= VM_RESERVED; | 1260 | vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP; |
1261 | vma->vm_private_data = sfp; | 1261 | vma->vm_private_data = sfp; |
1262 | vma->vm_ops = &sg_mmap_vm_ops; | 1262 | vma->vm_ops = &sg_mmap_vm_ops; |
1263 | return 0; | 1263 | return 0; |