summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorSteve French2008-11-03 21:46:21 +0100
committerSteve French2008-11-03 21:46:21 +0100
commitc527c8a7ffa18400c2c1488f7ab5aff5e83f3c8e (patch)
tree4f051c90690aa89099d169baa7fdbce2a01cdea1 /fs/cifs/cifssmb.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6 (diff)
downloadkernel-qcow2-linux-c527c8a7ffa18400c2c1488f7ab5aff5e83f3c8e.tar.gz
kernel-qcow2-linux-c527c8a7ffa18400c2c1488f7ab5aff5e83f3c8e.tar.xz
kernel-qcow2-linux-c527c8a7ffa18400c2c1488f7ab5aff5e83f3c8e.zip
[CIFS] Can't rely on iov length and base when kernel_recvmsg returns error
When retrying kernel_recvmsg, reset iov_base and iov_len. Note comment from Sridhar: "In the normal path, iov.iov_len is clearly set to 4. But i think you are running into a case where kernel_recvmsg() is called via 'goto incomplete_rcv' It happens if the previous call fails with EAGAIN. If you want to call recvmsg() after EAGAIN failure, you need to reset iov." Signed-off-by: Shirish Pargaonkar <shirishp@us.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
0 files changed, 0 insertions, 0 deletions