Skip to content

Commit

Permalink
p9_client_write(): avoid double p9_free_req()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Al Viro committed Jul 4, 2015
1 parent a84b69c commit 67e808f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/9p/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1648,6 +1648,7 @@ p9_client_write(struct p9_fid *fid, u64 offset, struct iov_iter *from, int *err)
if (*err) {
trace_9p_protocol_dump(clnt, req->rc);
p9_free_req(clnt, req);
break;
}

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

0 comments on commit 67e808f

Please sign in to comment.