Skip to contentSkip to conversation

dlm: Fix test for -ERESTARTSYS

PATCH New Dan Carpenter 1 participant 1 message Feb 5, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dlm: Fix test for -ERESTARTSYS

The minus sign is missing so this condition is never true.

Fixes 5c1597bfeb2c ("dlm: retry wait_event_interruptible in event of ERESTARTSYS")

---
Static analysis. Not tested.

 fs/dlm/lockspace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/dlm/lockspace.c +1 -1
index 7aae23afdd3a..738136a762d4 100644
@@ -213,7 +213,7 @@ static int do_uevent(struct dlm_ls *ls, int in)
 	do {
 		error = wait_event_interruptible(ls->ls_uevent_wait,
 						 test_and_clear_bit(LSFL_UEVENT_WAIT, &ls->ls_flags));
-	} while (error == ERESTARTSYS);
+	} while (error == -ERESTARTSYS);
 
 	log_rinfo(ls, "group event done %d %d", error, ls->ls_uevent_result);
 
Signature · 1 line
2.17.1