summaryrefslogtreecommitdiffstats
path: root/fs/devpts
diff options
context:
space:
mode:
authorHiroaki SHIMODA <shimoda.hiroaki@gmail.com>2012-08-03 19:57:52 +0900
committerDavid S. Miller <davem@davemloft.net>2012-08-03 16:47:24 -0700
commit696ecdc10622d86541f2e35cc16e15b6b3b1b67e (patch)
tree55090a298a1e20df7aaf7c27af2505c2c581eac1 /fs/devpts
parentf3f9f332e231abaf28e14344733b7d000b830f7c (diff)
downloadop-kernel-dev-696ecdc10622d86541f2e35cc16e15b6b3b1b67e.zip
op-kernel-dev-696ecdc10622d86541f2e35cc16e15b6b3b1b67e.tar.gz
net_sched: gact: Fix potential panic in tcf_gact().
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>
Diffstat (limited to 'fs/devpts')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud