summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSouptick Joarder <jrdr.linux@gmail.com>2018-10-30 15:04:35 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2018-10-31 08:54:12 -0700
commitb5c212374c85353a4412a08a958ecb6e0d2aa95f (patch)
tree2cda066d59fc527863bb1c7576c3ea7859feaf1c
parent4b408c74ee5a0b74fc9265c2fe39b0e7dec7c056 (diff)
downloadlwn-b5c212374c85353a4412a08a958ecb6e0d2aa95f.tar.gz
lwn-b5c212374c85353a4412a08a958ecb6e0d2aa95f.zip
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>
-rw-r--r--fs/proc/vmcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c
index 91ae16fbd7d5..0377a104495b 100644
--- a/fs/proc/vmcore.c
+++ b/fs/proc/vmcore.c
@@ -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);
}