From: Steve French Date: Mon, 3 Nov 2008 20:46:21 +0000 (+0000) Subject: [CIFS] Can't rely on iov length and base when kernel_recvmsg returns error X-Git-Tag: v2.6.28-rc6~58^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c527c8a7ffa18400c2c1488f7ab5aff5e83f3c8e;p=pandora-kernel.git [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 Signed-off-by: Steve French --- Reading git-diff-tree failed