OrangePi_CM5/drivers/net/wireless/intersil/orinoco
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
..
Kconfig b43: Replace HTTP links with HTTPS ones 2020-08-02 18:16:35 +03:00
Makefile
…
airport.c
…
cfg.c
…
cfg.h
…
fw.c orinoco: Replace zero-length array with flexible-array member 2020-03-23 18:59:50 +02:00
fw.h
…
hermes.c
…
hermes.h orinoco: Replace zero-length array with flexible-array member 2020-03-23 18:59:50 +02:00
hermes_dld.c orinoco: Replace zero-length array with flexible-array member 2020-03-23 18:59:50 +02:00
hermes_dld.h
…
hermes_rid.h
…
hw.c
…
hw.h
…
main.c intersil: convert tasklets to use new tasklet_setup() API 2020-08-27 16:22:09 +03:00
main.h
…
mic.c
…
mic.h
…
orinoco.h
…
orinoco_cs.c
…
orinoco_nortel.c orinoco: use generic power management 2020-07-15 13:38:26 +03:00
orinoco_pci.c orinoco: use generic power management 2020-07-15 13:38:26 +03:00
orinoco_pci.h orinoco: use generic power management 2020-07-15 13:38:26 +03:00
orinoco_plx.c orinoco: use generic power management 2020-07-15 13:38:26 +03:00
orinoco_tmd.c orinoco: use generic power management 2020-07-15 13:38:26 +03:00
orinoco_usb.c orinoco: Move context allocation after processing the skb 2020-12-30 11:53:21 +01:00
scan.c
…
scan.h
…
spectrum_cs.c orinoco: remove useless variable 'err' in spectrum_cs_suspend() 2020-04-15 11:46:49 +03:00
wext.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
wext.h
…