]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: Release some resources in an error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 24 Nov 2020 15:59:18 +0000 (17:59 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Dec 2020 18:31:54 +0000 (20:31 +0200)
commite317d7835d6b849be1311255b462533618cfe001
treeb7c0ca309a602fed58a11cee725831f1fa6a410a
parentd8abf83f39b846a4a71b5ec018831b9d12ca8002
ath10k: Release some resources in an error handling path

Should an error occur after calling 'ath10k_usb_create()', it should be
undone by a corresponding 'ath10k_usb_destroy()' call

Fixes: 19ddf4ac1e81 ("ath10k: add initial USB support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201122170358.1346065-1-christophe.jaillet@wanadoo.fr
drivers/net/wireless/ath/ath10k/usb.c