9p: cope with bogus responses from server in p9_client_{read,write}
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 4 Jul 2015 20:17:39 +0000 (16:17 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 4 Jul 2015 20:17:39 +0000 (16:17 -0400)
commit0f1db7dee200127da4c07928189748918c312031
treebd2abe8f6e2929335e9326afa56f06102386c224
parent67e808fbb0404a12d9b9830a44bbb48d447d8bc9
9p: cope with bogus responses from server in p9_client_{read,write}

if server claims to have written/read more than we'd told it to,
warn and cap the claimed byte count to avoid advancing more than
we are ready to.
net/9p/client.c