summaryrefslogtreecommitdiff
path: root/net/9p
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-01-18 21:32:11 -0800
committerDavid S. Miller <davem@davemloft.net>2009-01-19 16:20:15 -0800
commit24e94de41e76134fad05552588fe01af2cab1494 (patch)
treea76aaaf66251ca00bd03645be43e18abb7ed5fe2 /net/9p
parentd05c26ce690e867aabfc7d708d481e0f86f23496 (diff)
downloadlinux-3.10-24e94de41e76134fad05552588fe01af2cab1494.tar.gz
linux-3.10-24e94de41e76134fad05552588fe01af2cab1494.tar.bz2
linux-3.10-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 'net/9p')
-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 821f1ec0b2c..1eb580c38fb 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;
}