linux_dsm_epyc7002/drivers/net/wireless/intersil
Sebastian Andrzej Siewior 15e39825a2 orinoco: Move context allocation after processing the skb
[ Upstream commit a31eb615646a63370aa1da1053c45439c7653d83 ]

ezusb_xmit() allocates a context which is leaked if
orinoco_process_xmit_skb() returns an error.

Move ezusb_alloc_ctx() after the invocation of
orinoco_process_xmit_skb() because the context is not needed so early.
ezusb_access_ltv() will cleanup the context in case of an error.

Fixes: bac6fafd4d ("orinoco: refactor xmit path")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201113212252.2243570-2-bigeasy@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:21 +01:00
..
hostap networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
orinoco orinoco: Move context allocation after processing the skb 2020-12-30 11:53:21 +01:00
p54 p54: avoid accessing the data mapped to streaming DMA 2020-09-01 12:33:48 +03:00
prism54 prism54: isl_ioctl: Remove unused variable 'j' 2020-09-01 16:14:51 +03:00
Kconfig intersil: fix wiki website url 2020-08-02 18:23:21 +03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00