OSDN Git Service

Bluetooth: btqcomsmd: Fix a resource leak in error handling paths in the probe function
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 12 Dec 2020 09:46:58 +0000 (10:46 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Dec 2020 21:20:21 +0000 (22:20 +0100)
commit9a39a927be01d89e53f04304ab99a8761e08910d
tree35412099df2a2f4497422e191733789e1ad8d99b
parent3db1a3fa98808aa90f95ec3e0fa2fc7abf28f5c9
Bluetooth: btqcomsmd: Fix a resource leak in error handling paths in the probe function

Some resource should be released in the error handling path of the probe
function, as already done in the remove function.

The remove function was fixed in commit 5052de8deff5 ("soc: qcom: smd:
Transition client drivers from smd to rpmsg")

Fixes: 1511cc750c3d ("Bluetooth: Introduce Qualcomm WCNSS SMD based HCI driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btqcomsmd.c