mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	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: 67f269b37f ("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>
			
			
This commit is contained in:
		
							parent
							
								
									37624b5854
								
							
						
					
					
						commit
						6a5c5d26c4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -895,7 +895,7 @@ static vm_fault_t rdma_umap_fault(struct vm_fault *vmf)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Read only pages can just use the system zero page. */
 | 
						/* Read only pages can just use the system zero page. */
 | 
				
			||||||
	if (!(vmf->vma->vm_flags & (VM_WRITE | VM_MAYWRITE))) {
 | 
						if (!(vmf->vma->vm_flags & (VM_WRITE | VM_MAYWRITE))) {
 | 
				
			||||||
		vmf->page = ZERO_PAGE(vmf->vm_start);
 | 
							vmf->page = ZERO_PAGE(vmf->address);
 | 
				
			||||||
		get_page(vmf->page);
 | 
							get_page(vmf->page);
 | 
				
			||||||
		return 0;
 | 
							return 0;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue