Skip to content
Commit 4ac7573e authored by Hangyu Hua's avatar Hangyu Hua Committed by Dominique Martinet
Browse files

net: 9p: fix refcount leak in p9_read_work() error handling

p9_req_put need to be called when m->rreq->rc.sdata is NULL to avoid
temporary refcount leak.

Link: https://lkml.kernel.org/r/20220712104438.30800-1-hbh25y@gmail.com
Fixes: 728356de

 ("9p: Add refcount to p9_req_t")
Signed-off-by: default avatarHangyu Hua <hbh25y@gmail.com>
[Dominique: commit wording adjustments, p9_req_put argument fixes for rebase]
Signed-off-by: default avatarDominique Martinet <asmadeus@codewreck.org>
parent 67dd8e44
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment