aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/dlm/user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/user.c b/fs/dlm/user.c
index ebbcf38fd33b..1aa76b32d056 100644
--- a/fs/dlm/user.c
+++ b/fs/dlm/user.c
@@ -538,7 +538,7 @@ static ssize_t device_write(struct file *file, const char __user *buf,
538 538
539 /* do we really need this? can a write happen after a close? */ 539 /* do we really need this? can a write happen after a close? */
540 if ((kbuf->cmd == DLM_USER_LOCK || kbuf->cmd == DLM_USER_UNLOCK) && 540 if ((kbuf->cmd == DLM_USER_LOCK || kbuf->cmd == DLM_USER_UNLOCK) &&
541 test_bit(DLM_PROC_FLAGS_CLOSING, &proc->flags)) 541 (proc && test_bit(DLM_PROC_FLAGS_CLOSING, &proc->flags)))
542 return -EINVAL; 542 return -EINVAL;
543 543
544 sigfillset(&allsigs); 544 sigfillset(&allsigs);