diff options
Diffstat (limited to 'net/packet')
-rw-r--r-- | net/packet/af_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 2f0369367ee0..e2d1def70841 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) | |||
1734 | goto done; | 1734 | goto done; |
1735 | 1735 | ||
1736 | err = -EINVAL; | 1736 | err = -EINVAL; |
1737 | if (mreq->mr_alen > dev->addr_len) | 1737 | if (mreq->mr_alen != dev->addr_len) |
1738 | goto done; | 1738 | goto done; |
1739 | 1739 | ||
1740 | err = -ENOBUFS; | 1740 | err = -ENOBUFS; |