projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bb7eca
)
9p/net: fix missing error check in p9_check_errors
author
Dominique Martinet
<asmadeus@codewreck.org>
Tue, 2 Nov 2021 10:47:47 +0000
(19:47 +0900)
committer
Dominique Martinet
<asmadeus@codewreck.org>
Wed, 3 Nov 2021 00:49:54 +0000
(09:49 +0900)
Link:
https://lkml.kernel.org/r/99338965-d36c-886e-cd0e-1d8fff2b4746@gmail.com
Reported-by: syzbot+06472778c97ed94af66d@syzkaller.appspotmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
net/9p/client.c
patch
|
blob
|
history
diff --git
a/net/9p/client.c
b/net/9p/client.c
index 213f12ed76cd8a06c455072e50a98c0423749da1..7973267ec846422cf8f314dbb68dd4e7ed3ba56a 100644
(file)
--- a/
net/9p/client.c
+++ b/
net/9p/client.c
@@
-541,6
+541,8
@@
static int p9_check_errors(struct p9_client *c, struct p9_req_t *req)
kfree(ename);
} else {
err = p9pdu_readf(&req->rc, c->proto_version, "d", &ecode);
+ if (err)
+ goto out_err;
err = -ecode;
p9_debug(P9_DEBUG_9P, "<<< RLERROR (%d)\n", -ecode);