[DECnet]: Patch to fix recvmsg() flag check
authorPatrick Caulfield <patrick@tykepenguin.com>
Tue, 21 Mar 2006 06:43:05 +0000 (22:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 06:43:05 +0000 (22:43 -0800)
This patch means that 64bit kernel/32bit userland platforms will now
work correctly with DECnet.

Signed-off-by: Patrick Caulfield <patrick@tykepenguin.com>
Signed-off-by: Steven Whitehouse <steve@chygwyn.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/af_decnet.c

index 824981e..2b289ef 100644 (file)
@@ -1693,7 +1693,7 @@ static int dn_recvmsg(struct kiocb *iocb, struct socket *sock,
        if (rv)
                goto out;
 
-       if (flags & ~(MSG_PEEK|MSG_OOB|MSG_WAITALL|MSG_DONTWAIT|MSG_NOSIGNAL)) {
+       if (flags & ~(MSG_CMSG_COMPAT|MSG_PEEK|MSG_OOB|MSG_WAITALL|MSG_DONTWAIT|MSG_NOSIGNAL)) {
                rv = -EOPNOTSUPP;
                goto out;
        }