Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Roel Kluin and committed by
David S. Miller
24e94de4 d05c26ce

+1 -1
+1 -1
net/9p/client.c
··· 618 618 return ERR_PTR(-ENOMEM); 619 619 620 620 ret = p9_idpool_get(clnt->fidpool); 621 - if (fid->fid < 0) { 621 + if (ret < 0) { 622 622 ret = -ENOSPC; 623 623 goto error; 624 624 }