aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/lockd/mon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c
index bb5fc1bb37f7..07e16b81498d 100644
--- a/fs/lockd/mon.c
+++ b/fs/lockd/mon.c
@@ -91,8 +91,9 @@ nsm_monitor(struct nlm_host *host)
91 nsm->sm_mon_name = nsm_use_hostnames ? nsm->sm_name : nsm->sm_addrbuf; 91 nsm->sm_mon_name = nsm_use_hostnames ? nsm->sm_name : nsm->sm_addrbuf;
92 92
93 status = nsm_mon_unmon(nsm, SM_MON, &res); 93 status = nsm_mon_unmon(nsm, SM_MON, &res);
94 94 if (res.status != 0)
95 if (status < 0 || res.status != 0) 95 status = -EIO;
96 if (status < 0)
96 printk(KERN_NOTICE "lockd: cannot monitor %s\n", nsm->sm_name); 97 printk(KERN_NOTICE "lockd: cannot monitor %s\n", nsm->sm_name);
97 else 98 else
98 nsm->sm_monitored = 1; 99 nsm->sm_monitored = 1;