diff options
-rw-r--r-- | drivers/net/ewrk3.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ewrk3.c b/drivers/net/ewrk3.c index 91e59f3a9d6d..a2bade586886 100644 --- a/drivers/net/ewrk3.c +++ b/drivers/net/ewrk3.c | |||
@@ -1776,8 +1776,7 @@ static int ewrk3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
1776 | break; | 1776 | break; |
1777 | case EWRK3_SET_MCA: /* Set a multicast address */ | 1777 | case EWRK3_SET_MCA: /* Set a multicast address */ |
1778 | if (capable(CAP_NET_ADMIN)) { | 1778 | if (capable(CAP_NET_ADMIN)) { |
1779 | if (ioc->len > 1024) | 1779 | if (ioc->len > HASH_TABLE_LEN) { |
1780 | { | ||
1781 | status = -EINVAL; | 1780 | status = -EINVAL; |
1782 | break; | 1781 | break; |
1783 | } | 1782 | } |