diff options
-rw-r--r-- | fs/lockd/mon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c index d61cdc61cb50..3bb71e1b1e1f 100644 --- a/fs/lockd/mon.c +++ b/fs/lockd/mon.c | |||
@@ -126,6 +126,8 @@ void nsm_unmonitor(const struct nlm_host *host) | |||
126 | dprintk("lockd: nsm_unmonitor(%s)\n", nsm->sm_name); | 126 | dprintk("lockd: nsm_unmonitor(%s)\n", nsm->sm_name); |
127 | 127 | ||
128 | status = nsm_mon_unmon(nsm, SM_UNMON, &res); | 128 | status = nsm_mon_unmon(nsm, SM_UNMON, &res); |
129 | if (res.status != 0) | ||
130 | status = -EIO; | ||
129 | if (status < 0) | 131 | if (status < 0) |
130 | printk(KERN_NOTICE "lockd: cannot unmonitor %s\n", | 132 | printk(KERN_NOTICE "lockd: cannot unmonitor %s\n", |
131 | nsm->sm_name); | 133 | nsm->sm_name); |