Bluetooth: Fix EALREADY and ELOOP cases in bt_status()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 30 Oct 2022 07:00:03 +0000 (08:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:28 +0000 (13:32 +0100)
commita65b09e3130b38eb8c40ca8bcebba00d42be4fe5
treec96dcf5ba3da0aeccbcb31815e8f9d528f4fb4ab
parent72560759f6e0aaa7920a1cfe41d005143ba31030
Bluetooth: Fix EALREADY and ELOOP cases in bt_status()

[ Upstream commit 63db780a93eb802ece1bbf61ab5894ad8827b56e ]

'err' is known to be <0 at this point.

So, some cases can not be reached because of a missing "-".
Add it.

Fixes: ca2045e059c3 ("Bluetooth: Add bt_status")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/lib.c