Message ID | 20230515204722.1000957-3-mkl@pengutronix.de (mailing list archive) |
---|---|
State | Accepted |
Commit | 1db080cbdbab28752bbb1c86d64daf96253a5da1 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/9] can: isotp: recvmsg(): allow MSG_CMSG_COMPAT flag | expand |
diff --git a/net/can/j1939/socket.c b/net/can/j1939/socket.c index 7e90f9e61d9b..1790469b2580 100644 --- a/net/can/j1939/socket.c +++ b/net/can/j1939/socket.c @@ -798,7 +798,7 @@ static int j1939_sk_recvmsg(struct socket *sock, struct msghdr *msg, struct j1939_sk_buff_cb *skcb; int ret = 0; - if (flags & ~(MSG_DONTWAIT | MSG_ERRQUEUE)) + if (flags & ~(MSG_DONTWAIT | MSG_ERRQUEUE | MSG_CMSG_COMPAT)) return -EINVAL; if (flags & MSG_ERRQUEUE)