forked from luck/tmp_suning_uos_patched
fs/proc/vmcore.c: Convert to use vmf_error()
This code can be replaced with vmf_error() inline function. Link: http://lkml.kernel.org/r/20180918145945.GA11392@jordon-HP-15-Notebook-PC Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Reviewed-by: Matthew Wilcox <willy@infradead.org> Cc: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4b408c74ee
commit
b5c212374c
|
@ -423,7 +423,7 @@ static vm_fault_t mmap_vmcore_fault(struct vm_fault *vmf)
|
|||
if (rc < 0) {
|
||||
unlock_page(page);
|
||||
put_page(page);
|
||||
return (rc == -ENOMEM) ? VM_FAULT_OOM : VM_FAULT_SIGBUS;
|
||||
return vmf_error(rc);
|
||||
}
|
||||
SetPageUptodate(page);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user