OSDN Git Service

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)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 12 Dec 2022 22:19:24 +0000 (14:19 -0800)
commit63db780a93eb802ece1bbf61ab5894ad8827b56e
treea1a43a1e0202a6087c84e0a0029961a0021d63d0
parent462fcd53924ccc21596d30edd0673fa7c939b392
Bluetooth: Fix EALREADY and ELOOP cases in bt_status()

'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>
net/bluetooth/lib.c