Skip to content

Commit 67e808f

Browse files
author
Al Viro
committed
p9_client_write(): avoid double p9_free_req()
Braino in "9p: switch p9_client_write() to passing it struct iov_iter *"; if response is impossible to parse and we discard the request, get the out of the loop right there. Cc: [email protected] Signed-off-by: Al Viro <[email protected]>
1 parent a84b69c commit 67e808f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/9p/client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,6 +1648,7 @@ p9_client_write(struct p9_fid *fid, u64 offset, struct iov_iter *from, int *err)
16481648
if (*err) {
16491649
trace_9p_protocol_dump(clnt, req->rc);
16501650
p9_free_req(clnt, req);
1651+
break;
16511652
}
16521653

16531654
p9_debug(P9_DEBUG_9P, "<<< RWRITE count %d\n", count);

0 commit comments

Comments
 (0)