]> git.baikalelectronics.ru Git - kernel.git/commit
net sched: fix kernel leak in act_police
authorJeff Mahoney <jeffm@suse.com>
Tue, 31 Aug 2010 13:21:42 +0000 (13:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Sep 2010 21:29:34 +0000 (14:29 -0700)
commitccbf81bc8b7b5f02527ac61e8fea1faa7f66add3
treecec4306a238658123aaba429a7cdb679c8deb801
parentb8a7957cdaaaf9afad2cf139d38dad91de839acf
net sched: fix kernel leak in act_police

While reviewing commit 04b3f7e98eea356debbb43a787b9d93bd9d946bb, I
 audited other users of tc_action_ops->dump for information leaks.

 That commit covered almost all of them but act_police still had a leak.

 opt.limit and opt.capab aren't zeroed out before the structure is
 passed out.

 This patch uses the C99 initializers to zero everything unused out.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_police.c