projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d80bc0f
)
net: clear heap allocation for ethtool_get_regs()
author
Eugene Teo
<eugeneteo@kernel.org>
Tue, 25 Jan 2011 05:05:17 +0000
(21:05 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 25 Jan 2011 05:05:17 +0000
(21:05 -0800)
There is a conflict between commit
b00916b1
and
a77f5db3
. This patch resolves
the conflict by clearing the heap allocation in ethtool_get_regs().
Cc: stable@kernel.org
Signed-off-by: Eugene Teo <eugeneteo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/ethtool.c
b/net/core/ethtool.c
index 17741782a345f78328a881da5887f6e81834f5b6..ff2302910b5eb936c7618c24477c018cfdcd159f 100644
(file)
--- a/
net/core/ethtool.c
+++ b/
net/core/ethtool.c
@@
-817,7
+817,7
@@
static int ethtool_get_regs(struct net_device *dev, char __user *useraddr)
if (regs.len > reglen)
regs.len = reglen;
- regbuf = v
m
alloc(reglen);
+ regbuf = v
z
alloc(reglen);
if (!regbuf)
return -ENOMEM;