linux/drivers/net/wireless/marvell
Ganapathi Bhat 33a164fa8a mwifex: free rx_cmd skb in suspended state
USB suspend handler will kill the presubmitted rx_cmd URB. This
triggers a call to the corresponding URB complete handler, which
will free the rx_cmd skb, associated with rx_cmd URB. Due to a
possible race betwen suspend handler and main thread, depicted in
'commit bfcacac6c84b ("mwifiex: do no submit URB in suspended
state")', it is possible that the rx_cmd skb will fail to get
freed. This causes a memory leak, since the resume handler will
always allocate a new rx_cmd skb.

To fix this, free the rx_cmd skb in mwifiex_usb_submit_rx_urb, if
the device is in suspended state.

Signed-off-by: Vidya Dharmaraju <vidyad@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-08-31 18:46:53 +03:00
..
libertas libertas: fix suspend and resume for SDIO connected cards 2018-07-04 18:12:46 +03:00
libertas_tf libertas_tf: prevent underflow in process_cmdrequest() 2018-08-31 18:43:36 +03:00
mwifiex mwifex: free rx_cmd skb in suspended state 2018-08-31 18:46:53 +03:00
Kconfig net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
Makefile
mwl8k.c mwl8k: Expand non-DFS 5G channels 2017-12-07 15:17:26 +02:00