diff options
author | Bob Copeland <me@bobcopeland.com> | 2009-04-15 13:57:36 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 22:57:15 +0200 |
commit | 26925042b6b105995ee54c6015e95f0caf9632d6 (patch) | |
tree | 9305c7204ac3aa0bc081b67d36d6ad8a66303c0e /drivers/net/wireless/ath/regd.c | |
parent | ath5k: use rx hw descriptor pointer for self-linked check (diff) | |
download | linux-26925042b6b105995ee54c6015e95f0caf9632d6.tar.xz linux-26925042b6b105995ee54c6015e95f0caf9632d6.zip |
ath5k: manipulate rxlink and descriptor address under rxbuf lock
Grabbing an ath5k_buf then dropping the lock is racy because the
referenced descriptor can be obtained in another thread and released
before the buffer is handed to the hardware. Likewise, manipulating
sc->rxlink without the lock can lead to having multiple self-linked
hardware descriptors.
Changes-licensed-under: 3-Clause-BSD
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/regd.c')
0 files changed, 0 insertions, 0 deletions