]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit834fd3462b8fe2951b11cce15952c5dbfaab6061
treebd2abe8f6e2929335e9326afa56f06102386c224
parent7ac8f0ecf8e618d779990db5f2efb071eb15db28
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