* [PATCH] Bluetooth: Fix EALREADY and ELOOP cases in bt_status()
@ 2022-10-30 7:00 Christophe JAILLET
2022-10-31 23:10 ` patchwork-bot+bluetooth
0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2022-10-30 7:00 UTC (permalink / raw)
To: Marcel Holtmann, Johan Hedberg, Luiz Augusto von Dentz,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
Cc: linux-kernel, kernel-janitors, Christophe JAILLET,
Luiz Augusto von Dentz, linux-bluetooth, netdev
'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>
---
net/bluetooth/lib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c
index 469a0c95b6e8..53a796ac078c 100644
--- a/net/bluetooth/lib.c
+++ b/net/bluetooth/lib.c
@@ -170,7 +170,7 @@ __u8 bt_status(int err)
case -EMLINK:
return 0x09;
- case EALREADY:
+ case -EALREADY:
return 0x0b;
case -EBUSY:
@@ -191,7 +191,7 @@ __u8 bt_status(int err)
case -ECONNABORTED:
return 0x16;
- case ELOOP:
+ case -ELOOP:
return 0x17;
case -EPROTONOSUPPORT:
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Bluetooth: Fix EALREADY and ELOOP cases in bt_status()
2022-10-30 7:00 [PATCH] Bluetooth: Fix EALREADY and ELOOP cases in bt_status() Christophe JAILLET
@ 2022-10-31 23:10 ` patchwork-bot+bluetooth
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+bluetooth @ 2022-10-31 23:10 UTC (permalink / raw)
To: Christophe JAILLET
Cc: marcel, johan.hedberg, luiz.dentz, davem, edumazet, kuba, pabeni,
linux-kernel, kernel-janitors, luiz.von.dentz, linux-bluetooth,
netdev
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Sun, 30 Oct 2022 08:00:03 +0100 you wrote:
> '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>
>
> [...]
Here is the summary with links:
- Bluetooth: Fix EALREADY and ELOOP cases in bt_status()
https://git.kernel.org/bluetooth/bluetooth-next/c/8fceb58d84ab
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-31 23:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-30 7:00 [PATCH] Bluetooth: Fix EALREADY and ELOOP cases in bt_status() Christophe JAILLET
2022-10-31 23:10 ` patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).