[PATCH] knfsd: nfsd: mark rqstp to prevent use of sendfile in privacy case
[powerpc.git] / fs / 9p / vfs_inode.c
index 5c6bdf8..2f580a1 100644 (file)
@@ -300,7 +300,7 @@ clunk_fid:
        fid = V9FS_NOFID;
 
 put_fid:
-       if (fid >= 0)
+       if (fid != V9FS_NOFID)
                v9fs_put_idpool(fid, &v9ses->fidpool);
 
        kfree(fcall);