net/9p: fid->fid is used uninitialized

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Roel Kluin 2009-01-18 21:32:11 -08:00 • committed by David S. Miller
commit 24e94de41e

View 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;
}