diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-07-04 16:11:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-03 09:29:18 -0700 |
commit | 409e901e4d22f51cbe19a9ec1f943fbbdcc35853 (patch) | |
tree | caf91c64f500ba1033a0ef85daf7d291dae11727 | |
parent | 7e7ef0282a07dc7fc267c6e753f1a2e0919f7e01 (diff) | |
download | lwn-409e901e4d22f51cbe19a9ec1f943fbbdcc35853.tar.gz lwn-409e901e4d22f51cbe19a9ec1f943fbbdcc35853.zip |
p9_client_write(): avoid double p9_free_req()
commit 67e808fbb0404a12d9b9830a44bbb48d447d8bc9 upstream.
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.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | net/9p/client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/9p/client.c b/net/9p/client.c index 28f36e4556f9..81925b923318 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -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); |