[PATCH 2/2] drivers/dax: Changing RC value

From: Pushkar Jambhlekar
Date: Tue Apr 11 2017 - 01:27:07 EST


Changing rc value from VM_FAULT_FALLBACK to VM_FAULT_SIGBUS for an unknown / unsupported fault size.

Signed-off-by: Pushkar Jambhlekar <pushkar.iit@xxxxxxxxx>
---
drivers/dax/dax.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dax/dax.c b/drivers/dax/dax.c
index fd9c4db..6156fdc 100644
--- a/drivers/dax/dax.c
+++ b/drivers/dax/dax.c
@@ -590,7 +590,7 @@ static int dax_dev_huge_fault(struct vm_fault *vmf,
rc = __dax_dev_pud_fault(dax_dev, vmf);
break;
default:
- rc = VM_FAULT_FALLBACK;
+ rc = VM_FAULT_SIGBUS;
}
rcu_read_unlock();

--
2.7.4