projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb1d23b
)
[DECNET]: Fix memset overflow on 64bit archs while dumping decnet routing rules
author
Thomas Graf
<tgraf@suug.ch>
Tue, 5 Jul 2005 22:01:25 +0000
(15:01 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 5 Jul 2005 22:01:25 +0000
(15:01 -0700)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/dn_fib.c
patch
|
blob
|
blame
|
history
diff --git
a/net/decnet/dn_fib.c
b/net/decnet/dn_fib.c
index 9934b25720e4f5f3ef6b74e7ff04d8b984079738..99bc061759c3084efb674eb6bfe231edf162baf1 100644
(file)
--- a/
net/decnet/dn_fib.c
+++ b/
net/decnet/dn_fib.c
@@
-551,7
+551,8
@@
int dn_fib_dump(struct sk_buff *skb, struct netlink_callback *cb)
if (t < s_t)
continue;
if (t > s_t)
- memset(&cb->args[1], 0, sizeof(cb->args)-sizeof(int));
+ memset(&cb->args[1], 0,
+ sizeof(cb->args) - sizeof(cb->args[0]));
tb = dn_fib_get_table(t, 0);
if (tb == NULL)
continue;