net/9p: fid->fid is used uninitialized
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 19 Jan 2009 05:32:11 +0000 (21:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jan 2009 00:20:15 +0000 (16:20 -0800)
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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;
        }