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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2020 07:05:17 +0000 (09:05 +0200)
commitef93244e55ed9bc7bec0737927f527e7d66bdddc
tree71702ad7501535495d6b1adf7397d21f2f2a7650
parent2bc8b1816cf4908ae0a04c3e87e167d2dcb60f38
wcn36xx: Fix error handling path in 'wcn36xx_probe()'

[ Upstream commit a86308fc534edeceaf64670c691e17485436a4f4 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/wcn36xx/main.c