git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3f9f33
)
net_sched: gact: Fix potential panic in tcf_gact().
author
Hiroaki SHIMODA
<shimoda.hiroaki@gmail.com>
Fri, 3 Aug 2012 10:57:52 +0000
(19:57 +0900)
committer
David S. Miller
<davem@davemloft.net>
Fri, 3 Aug 2012 23:47:24 +0000
(16:47 -0700)
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 <shimoda.hiroaki@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
No differences found