summaryrefslogtreecommitdiff
path: root/drivers/net/ewrk3.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-03-22 05:07:28 +0300
committerDavid S. Miller <davem@davemloft.net>2010-03-23 04:33:10 +0300
commit664ffe80c0df5ad2576420ed2e6bd75cc704ba3a (patch)
tree659eb6b690561062343292ed469523ca104c99fb /drivers/net/ewrk3.c
parentecbacf8da78d9312e3ef5ccdbbbd547267092941 (diff)
downloadlinux-664ffe80c0df5ad2576420ed2e6bd75cc704ba3a.tar.xz
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.c3
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)
break;
case EWRK3_SET_MCA: /* Set a multicast address */
if (capable(CAP_NET_ADMIN)) {
- if (ioc->len > 1024)
- {
+ if (ioc->len > HASH_TABLE_LEN) {
status = -EINVAL;
break;
}