]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[DLM] fix iovec length in recvmsg
authorPatrick Caulfield <pcaulfie@redhat.com>
Fri, 13 Oct 2006 16:12:05 +0000 (17:12 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 20 Oct 2006 13:13:10 +0000 (09:13 -0400)
I didn't spot that the msg_iovlen was set to 2 if there
were two elements in the iovec but left at zero if not :(

I think this might be why bob was still seeing trouble.

Signed-Off-By: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/dlm/lowcomms.c

index 867f93d0417e3fa1ca11e0e7e4b0363aa02d4a48..6da6b14d5a61b40a83e904e6f56cc19d12865ad2 100644 (file)
@@ -519,6 +519,7 @@ static int receive_from_sock(void)
        msg.msg_flags = 0;
        msg.msg_control = incmsg;
        msg.msg_controllen = sizeof(incmsg);
+       msg.msg_iovlen = 1;
 
        /* I don't see why this circular buffer stuff is necessary for SCTP
         * which is a packet-based protocol, but the whole thing breaks under