projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecbacf8
)
ewrk3: range checking problem
author
Dan Carpenter
<error27@gmail.com>
Mon, 22 Mar 2010 02:07:28 +0000
(
02:07
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 23 Mar 2010 01:33:10 +0000
(18:33 -0700)
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>
drivers/net/ewrk3.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ewrk3.c
b/drivers/net/ewrk3.c
index 91e59f3a9d6dae11b7deaf1c82f83dc21678a892..a2bade5868860ad083232602acada5093f2065ac 100644
(file)
--- 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;
}