Hangyu Hua 8324649b00 net: 9p: fix refcount leak in p9_read_work() error handling
[ Upstream commit 4ac7573e1f9333073fa8d303acc941c9b7ab7f61 ]

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: 728356dedeff ("9p: Add refcount to p9_req_t")
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
[Dominique: commit wording adjustments, p9_req_put argument fixes for rebase]
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:24:08 +02:00
..
2021-06-29 11:28:21 -07:00
2022-07-12 16:35:08 +02:00
2022-07-07 17:53:25 +02:00
2021-07-29 15:06:49 +01:00
2021-07-29 15:06:49 +01:00