summaryrefslogtreecommitdiffstats
path: root/net/9p/client.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-01-19 06:32:11 +0100
committerDavid S. Miller <davem@davemloft.net>2009-01-20 01:20:15 +0100
commit24e94de41e76134fad05552588fe01af2cab1494 (patch)
treea76aaaf66251ca00bd03645be43e18abb7ed5fe2 /net/9p/client.c
parentbnx2x: Version update (diff)
downloadlinux-24e94de41e76134fad05552588fe01af2cab1494.tar.xz
linux-24e94de41e76134fad05552588fe01af2cab1494.zip
net/9p: fid->fid is used uninitialized
Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/9p/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/client.c b/net/9p/client.c
index 821f1ec0b2c3..1eb580c38fbb 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -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;
}