Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rdma: fix build errors on s390 and MIPS due to bad ZERO_PAGE use

The parameter to ZERO_PAGE() was wrong, but since all architectures
except for MIPS and s390 ignore it, it wasn't noticed until 0-day
reported the build error.

Fixes: 67f269b37f9b ("RDMA/ucontext: Fix regression with disassociate")
Cc: stable@vger.kernel.org
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Leon Romanovsky <leonro@mellanox.com>
Cc: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+1 -1
+1 -1
drivers/infiniband/core/uverbs_main.c
··· 895 895 896 896 /* Read only pages can just use the system zero page. */ 897 897 if (!(vmf->vma->vm_flags & (VM_WRITE | VM_MAYWRITE))) { 898 - vmf->page = ZERO_PAGE(vmf->vm_start); 898 + vmf->page = ZERO_PAGE(vmf->address); 899 899 get_page(vmf->page); 900 900 return 0; 901 901 }