diff options
| author | Luciano Coelho <[email protected]> | 2009-07-03 05:25:08 +0000 |
|---|---|---|
| committer | John W. Linville <[email protected]> | 2009-07-07 16:55:28 +0000 |
| commit | 3938b45c1c75e53d45eb65ac253f12e86239c9ba (patch) | |
| tree | 9653bd914d6e117c4057f75d65ba61e30e6afa99 /net/unix/sysctl_net_unix.c | |
| parent | cfg80211: fix refcount leak (diff) | |
| download | kernel-3938b45c1c75e53d45eb65ac253f12e86239c9ba.tar.gz kernel-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 <[email protected]>
Acked-by: Felix Fietkau <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
