diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 39b835d7c4455e0605795aa38936d640427f62f2..cb69660d0779721ba45788114702adf172651344 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -1126,7 +1126,7 @@ static ssize_t write_v4_end_grace(struct file *file, char *buf, size_t size) case 'Y': case 'y': case '1': - if (nn->nfsd_serv) + if (!nn->nfsd_serv) return -EBUSY; nfsd4_end_grace(nn); break;