From: Jeff Mahoney Date: Tue, 31 Aug 2010 13:21:42 +0000 (+0000) Subject: net sched: fix kernel leak in act_police X-Git-Tag: v2.6.36-rc4~87^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f04cfd098fb81fded74e78ea1a1b86cc6c6c31e;p=pandora-kernel.git net sched: fix kernel leak in act_police While reviewing commit 1c40be12f7d8ca1d387510d39787b12e512a7ce8, 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 Acked-by: Jeff Mahoney Signed-off-by: David S. Miller --- Reading git-diff-tree failed