Skip to content

Commit

Permalink
fs/proc/vmcore.c: Convert to use vmf_error()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Souptick Joarder authored and torvalds committed Oct 31, 2018
1 parent 4b408c7 commit b5c2123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/proc/vmcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b5c2123

Please sign in to comment.