summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/intel/iwlwifi/cfg/9000.c
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@mm.st>2021-02-10 21:40:24 +0300
committerKalle Valo <kvalo@codeaurora.org>2021-02-11 09:45:48 +0300
commit6fe91b69ceceea832a73d35185df04b3e877f399 (patch)
treecb84eea27f30111841aaeab5297130d821c9a0cb /drivers/net/wireless/intel/iwlwifi/cfg/9000.c
parent1899e49385fd5678ecd84abf0c66138ddbe1aa58 (diff)
downloadlinux-6fe91b69ceceea832a73d35185df04b3e877f399.tar.xz
wilc1000: Fix use of void pointer as a wrong struct type
ac_classify() expects a struct sk_buff* as its second argument, which is a member of struct tx_complete_data. priv happens to be a pointer to struct tx_complete_data, so passing it directly to ac_classify() leads to wrong behaviour and occasional panics. Since there is only one caller of wilc_wlan_txq_add_net_pkt and it already knows the type behind this pointer, and the structure is already in the header file, change the function signature to use the real type instead of void* in order to prevent confusion. Signed-off-by: Vsevolod Kozlov <zaba@mm.st> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/YCQomJ1mO5BLxYOT@Vsevolods-Mini.lan
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/cfg/9000.c')
0 files changed, 0 insertions, 0 deletions