Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db1322b8 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller
Browse files

[DECNET]: Fix memset overflow on 64bit archs while dumping decnet routing rules



Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bb1d23b0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;