diff --git a/net/can/isotp.c b/net/can/isotp.c index 671c3673b7eadf2e6e6dbc6438b46ca61af87531..63e6e8923200bba51e8732ea5a0e412e43cfade7 100644 --- a/net/can/isotp.c +++ b/net/can/isotp.c @@ -1007,7 +1007,7 @@ static int isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int noblock = flags & MSG_DONTWAIT; int ret = 0; - if (flags & ~(MSG_DONTWAIT | MSG_TRUNC)) + if (flags & ~(MSG_DONTWAIT | MSG_TRUNC | MSG_PEEK)) return -EINVAL; if (!so->bound)