File ashmem_fix_suse_kernels.patch of Package anbox-modules-dkms

diff --git a/kernel/ashmem/ashmem.c b/kernel/ashmem/ashmem.c
index c846db6..64d598e 100644
--- a/ashmem/ashmem.c
+++ b/ashmem/ashmem.c
@@ -374,7 +374,7 @@ static int ashmem_mmap(struct file *file, struct vm_area_struct *vma)
 	}
 
 	/* requested protection bits must match our allowed protection mask */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) || (CONFIG_SUSE_KERNEL && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 39))
 	if (unlikely((vma->vm_flags & ~calc_vm_prot_bits(asma->prot_mask, 0)) &
 		     calc_vm_prot_bits(PROT_MASK, 0))) {
 #else
openSUSE Build Service is sponsored by