p9_client_write(): avoid double p9_free_req()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 4 Jul 2015 20:11:05 +0000 (16:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:18 +0000 (09:29 -0700)
commit409e901e4d22f51cbe19a9ec1f943fbbdcc35853
treecaf91c64f500ba1033a0ef85daf7d291dae11727
parent7e7ef0282a07dc7fc267c6e753f1a2e0919f7e01
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>
net/9p/client.c