diff --git a/net/can/isotp.c b/net/can/isotp.c index 4234a50..fca9d32 100644 --- a/net/can/isotp.c +++ b/net/can/isotp.c @@ -1045,7 +1045,7 @@ static int isotp_recvmsg(struct kiocb *iocb, struct socket *sock, 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)