Thread (2 messages) flat view 2 messages, 2 authors, 2012-08-03

Re: [PATCH net] net_sched: gact: Fix potential panic in tcf_gact().

From: David Miller <davem@davemloft.net>
Date: 2012-08-03 23:47:57

From: Hiroaki SHIMODA <redacted>
Date: Fri, 3 Aug 2012 19:57:52 +0900
gact_rand array is accessed by gact->tcfg_ptype whose value
is assumed to less than MAX_RAND, but any range checks are
not performed.

So add a check in tcf_gact_init(). And in tcf_gact(), we can
reduce a branch.

Signed-off-by: Hiroaki SHIMODA <redacted>
Applied and queued up for -stable, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help