ewrk3: range checking problem
Subsystems (3)
PATCH 1/1 ewrk3: range checking problem
The range checking here is wrong. It should be HASH_TABLE_LEN which is 512.
Signed-off-by Dan Carpenter <[email protected]>
drivers/net/ewrk3.c +1 -2
@@ -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 ; }
From: Dan Carpenter <[email protected]>
Date: Mon, 22 Mar 2010 15:07:28 +0300
Quoted 4 lines
The range checking here is wrong. It should be
HASH_TABLE_LENwhich is 512.Signed-off-by Dan Carpenter <[email protected]>
Applied.