projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d6897
)
[NET] ethtool: fix oops by testing correct struct member
author
Jeff Garzik
<jeff@garzik.org>
Mon, 17 Jul 2006 16:54:40 +0000
(12:54 -0400)
committer
Jeff Garzik
<jeff@garzik.org>
Mon, 17 Jul 2006 16:54:40 +0000
(12:54 -0400)
Noticed by Willy Tarreau.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
net/core/ethtool.c
patch
|
blob
|
history
diff --git
a/net/core/ethtool.c
b/net/core/ethtool.c
index 27ce1683caf52bc69a31a8b4d4f3b34b6e9f8408..2797e2815418993515d39314fdaba8a9f6926b7f 100644
(file)
--- a/
net/core/ethtool.c
+++ b/
net/core/ethtool.c
@@
-437,7
+437,7
@@
static int ethtool_set_pauseparam(struct net_device *dev, void __user *useraddr)
{
struct ethtool_pauseparam pauseparam;
- if (!dev->ethtool_ops->
g
et_pauseparam)
+ if (!dev->ethtool_ops->
s
et_pauseparam)
return -EOPNOTSUPP;
if (copy_from_user(&pauseparam, useraddr, sizeof(pauseparam)))