提交 24e94de4 编写于 作者: R Roel Kluin 提交者: David S. Miller

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

Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册