diff options
author | Dan Carpenter <error27@gmail.com> | 2010-03-21 22:07:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-22 21:33:10 -0400 |
commit | 664ffe80c0df5ad2576420ed2e6bd75cc704ba3a (patch) | |
tree | 659eb6b690561062343292ed469523ca104c99fb /drivers/net/ewrk3.c | |
parent | ecbacf8da78d9312e3ef5ccdbbbd547267092941 (diff) |
ewrk3: range checking problem
The range checking here is wrong. It should be HASH_TABLE_LEN which
is 512.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ewrk3.c')
-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 | } |