]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: Fix 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:51 +0000 (20:31 +0200)
commitd8abf83f39b846a4a71b5ec018831b9d12ca8002
treec6b91c3b29a9fe70fd8d9919562cfa3882926188
parent18ed5d6a076d85472faa5abe20cf0044ffb149e4
ath10k: Fix an error handling path

If 'ath10k_usb_create()' fails, we should release some resources and report
an error instead of silently continuing.

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/20201122170342.1346011-1-christophe.jaillet@wanadoo.fr
drivers/net/wireless/ath/ath10k/usb.c