Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent d05c26ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
	}
	}