[PATCH] net/9p: fid->fid is used uninitialized

From: Roel Kluin
Date: Sun Jan 18 2009 - 14:10:40 EST


I appear to have introduced this myself trying to fix a
signed/unsigned issue, sorry.
---
fid->fid is used uninitialized

Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx>
---
diff --git a/net/9p/client.c b/net/9p/client.c
index 821f1ec..1eb580c 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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/