summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorHiroaki SHIMODA <shimoda.hiroaki@gmail.com>2012-08-03 19:57:52 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-02 10:29:34 -0700
commit7e0c71a9a5a23f9433eac1d0aabbc9d54da3428b (patch)
tree78f3871cb2b2f4cd89a6ed8bda6bfc325e3f7814 /net/unix/af_unix.c
parent4658b24b2dd0e4c6215db2203743fa999765e8a0 (diff)
net_sched: gact: Fix potential panic in tcf_gact().
[ Upstream commit 696ecdc10622d86541f2e35cc16e15b6b3b1b67e ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions