diff options
author | Hiroaki SHIMODA <shimoda.hiroaki@gmail.com> | 2012-08-03 19:57:52 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-02 09:47:05 -0700 |
commit | d5916dedd20a1714a8436f51ba4df13bd4c56474 (patch) | |
tree | 9b90289de4dc3b03bfc018609b93e491c84faaa8 /drivers/isdn | |
parent | 09c403dc7c8e73a4f9c553e4d84aef68af25ff65 (diff) | |
download | kernel_samsung_aries-d5916dedd20a1714a8436f51ba4df13bd4c56474.zip kernel_samsung_aries-d5916dedd20a1714a8436f51ba4df13bd4c56474.tar.gz kernel_samsung_aries-d5916dedd20a1714a8436f51ba4df13bd4c56474.tar.bz2 |
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 'drivers/isdn')
0 files changed, 0 insertions, 0 deletions