OSDN Git Service

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)
commit6364e693f4a7a89a2fb3dd2cbd6cc06d5fd6e26d
treeb7c0ca309a602fed58a11cee725831f1fa6a410a
parented3573bc3943c27d2d8e405a242f87ed14572ca1
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: 4db66499df91 ("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