summaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@nokia.com>2009-07-03 08:25:08 +0300
committerJohn W. Linville <linville@tuxdriver.com>2009-07-07 12:55:28 -0400
commit3938b45c1c75e53d45eb65ac253f12e86239c9ba (patch)
tree9653bd914d6e117c4057f75d65ba61e30e6afa99 /virt/kvm
parent2dce4c2b5f0b43bd25bf9ea6ded06b7f8a54c91f (diff)
downloadkernel-crypto-3938b45c1c75e53d45eb65ac253f12e86239c9ba.tar.gz
kernel-crypto-3938b45c1c75e53d45eb65ac253f12e86239c9ba.tar.xz
kernel-crypto-3938b45c1c75e53d45eb65ac253f12e86239c9ba.zip
mac80211: minstrel: avoid accessing negative indices in rix_to_ndx()
If rix is not found in mi->r[], i will become -1 after the loop. This value is eventually used to access arrays, so we were accessing arrays with a negative index, which is obviously not what we want to do. This patch fixes this potential problem. Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Acked-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions