diff options
author | Yogesh Ashok Powar <yogesh.powar@gmail.com> | 2011-12-16 06:17:15 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-19 20:06:09 (GMT) |
commit | 27bf88829f50cf1af2b052ecee2f6f0dbe4a5141 (patch) | |
tree | ac9cdf412a7192fb5eb0cdc2e4cb6ce3c74cbfaf /arch/m32r/kernel/traps.c | |
parent | 23de5dc9be28b59a8474bcbba278230c66f0759d (diff) | |
download | linux-fsl-qoriq-27bf88829f50cf1af2b052ecee2f6f0dbe4a5141.tar.xz |
mac80211: Fixing sparse warning at sta_info.c
The commit 42624d4913a00219a8fdbb4bafd634d1d843be85
created following sparse warning
>net/mac80211/sta_info.c:965:24: warning: incorrect type in assignment (different address spaces)
>net/mac80211/sta_info.c:965:24: expected struct tid_ampdu_tx *tid_tx
>net/mac80211/sta_info.c:965:24: got struct tid_ampdu_tx [noderef] <asn:4>*<noident>
Making use of rcu_dereference_protected to fix the problem.
V2:
- Replacing rcu_dereference with rcu_dereference_protected
as suggested by Johannes.
- Adding mutex_lock/unlock to satisfy the condition at
rcu_dereference_protected
Cc: Nishant Sarmukadam <nishants@marvell.com>
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'arch/m32r/kernel/traps.c')
0 files changed, 0 insertions, 0 deletions