Merge pull request #9 from morphis/fix-sigbus-with-newer-kernels
staging: ashmem: Fix SIGBUS crash when traversing mmaped ashmem pages
This commit is contained in:
commit
5061f6e5cb
|
@ -419,7 +419,13 @@ static int ashmem_mmap(struct file *file, struct vm_area_struct *vma)
|
|||
fput(asma->file);
|
||||
goto out;
|
||||
}
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
|
||||
} else {
|
||||
vma_set_anonymous(vma);
|
||||
}
|
||||
#else
|
||||
}
|
||||
#endif
|
||||
|
||||
if (vma->vm_file)
|
||||
fput(vma->vm_file);
|
||||
|
|
Loading…
Reference in New Issue