diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 2f0369367ee0ca26c249efb44a08f42f4469385a..e2d1def708414bf3564b319d27d588b80237c247 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -1734,7 +1734,7 @@ static int packet_mc_add(struct sock *sk, struct packet_mreq_max *mreq) goto done; err = -EINVAL; - if (mreq->mr_alen > dev->addr_len) + if (mreq->mr_alen != dev->addr_len) goto done; err = -ENOBUFS;