]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/sched/act_simple.c
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)
commit1c40be12f7d8ca1d387510d39787b12e512a7ce8
treef555374eb0af8cf96d0dafb2444335ee352f73b4
parent001389b9581c13fe5fc357a0f89234f85af4215d
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