Commit 24e94de4 authored by Roel Kluin's avatar Roel Kluin Committed by David S. Miller

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

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d05c26ce
...@@ -618,7 +618,7 @@ static struct p9_fid *p9_fid_create(struct p9_client *clnt) ...@@ -618,7 +618,7 @@ static struct p9_fid *p9_fid_create(struct p9_client *clnt)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
ret = p9_idpool_get(clnt->fidpool); ret = p9_idpool_get(clnt->fidpool);
if (fid->fid < 0) { if (ret < 0) {
ret = -ENOSPC; ret = -ENOSPC;
goto error; goto error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment