From: Thomas Graf Date: Tue, 5 Jul 2005 22:01:25 +0000 (-0700) Subject: [DECNET]: Fix memset overflow on 64bit archs while dumping decnet routing rules X-Git-Tag: v2.6.13-rc2~6^2~23 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=db1322b8012e1a8ad711c04813817328cff46718;p=linux-2.6-omap-h63xx.git [DECNET]: Fix memset overflow on 64bit archs while dumping decnet routing rules Signed-off-by: Thomas Graf Signed-off-by: David S. Miller --- diff --git a/net/decnet/dn_fib.c b/net/decnet/dn_fib.c index 9934b25720e..99bc061759c 100644 --- 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;