Skip to content

Commit

Permalink
9p/net: fix missing error check in p9_check_errors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dominique Martinet committed Nov 3, 2021
1 parent 8bb7eca commit 27eb4c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/9p/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 27eb4c3

Please sign in to comment.