This code can be replaced with vmf_error() inline function. Signed-off-by: Souptick Joarder <jrdr.linux@xxxxxxxxx> --- fs/proc/vmcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index cbde728..89c6f94 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -401,7 +401,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); } -- 1.9.1