mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 15:53:22 -05:00
9p/net: fix missing error check in p9_check_errors
commit 27eb4c3144f7a5ebef3c9a261d80cb3e1fa784dc upstream. Link: https://lkml.kernel.org/r/[email protected] Reported-by: [email protected] Cc: [email protected] Signed-off-by: Dominique Martinet <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
aba12bb38b
commit
8d750efc8d
1 changed files with 2 additions and 0 deletions
|
|
@ -538,6 +538,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue