]> git.baikalelectronics.ru Git - kernel.git/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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Aug 2010 22:12:15 +0000 (15:12 -0700)
commit04b3f7e98eea356debbb43a787b9d93bd9d946bb
treef555374eb0af8cf96d0dafb2444335ee352f73b4
parentaa8602599ecdde91d32eaaf60388c3ddc444eb54
net sched: fix some kernel memory leaks

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>
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