]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/9p/client.c
SUNRPC: Tighten up the task locking rules in __rpc_execute()
[linux-2.6-omap-h63xx.git] / net / 9p / client.c
index 821f1ec0b2c38084444b7da0efb32f993f1e363c..1eb580c38fbbcf63ca5d0bc08ff4ba8a3f3ceb94 100644 (file)
@@ -618,7 +618,7 @@ static struct p9_fid *p9_fid_create(struct p9_client *clnt)
                return ERR_PTR(-ENOMEM);
 
        ret = p9_idpool_get(clnt->fidpool);
-       if (fid->fid < 0) {
+       if (ret < 0) {
                ret = -ENOSPC;
                goto error;
        }