]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
wcn36xx: Fix error handling path in 'wcn36xx_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 8 May 2020 02:56:03 +0000 (05:56 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 11 May 2020 12:37:21 +0000 (15:37 +0300)
commita86308fc534edeceaf64670c691e17485436a4f4
tree7ab9651acb7d2ff02a5475be742d235a1e40a93c
parentd3ed0cf047cf054fd54589e5d4247f0001c5d85c
wcn36xx: Fix error handling path in 'wcn36xx_probe()'

In case of error, 'qcom_wcnss_open_channel()' must be undone by a call to
'rpmsg_destroy_ept()', as already done in the remove function.

Fixes: 5052de8deff5 ("soc: qcom: smd: Transition client drivers from smd to rpmsg")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200507043619.200051-1-christophe.jaillet@wanadoo.fr
drivers/net/wireless/ath/wcn36xx/main.c