]> git.itanic.dy.fi Git - linux-stable/commit
net sched: fix some kernel memory leaks
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 16 Aug 2010 20:04:22 +0000 (20:04 +0000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 17 Apr 2011 20:16:00 +0000 (16:16 -0400)
commitfcbd591a63a37b0ba0144509a44a78a0078e4661
tree87f520353088297f1db590bd0c22b990600b4f48
parent49cb80e6c90e171d0e80666cba269d3d96bb7ace
net sched: fix some kernel memory leaks

commit 1c40be12f7d8ca1d387510d39787b12e512a7ce8 upstream.

We leak at least 32bits of kernel memory to user land in tc dump,
because we dont init all fields (capab ?) of the dumped structure.

Use C99 initializers so that holes and non explicit fields are zeroed.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/sched/act_gact.c
net/sched/act_mirred.c
net/sched/act_nat.c
net/sched/act_simple.c
net/sched/act_skbedit.c