* [PATCH RESEND] bluetooth: btbcm: Fix logic error in forming the board name.
@ 2023-03-10 8:07 Sasha Finkelstein via B4 Relay
2023-03-10 8:10 ` Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Sasha Finkelstein via B4 Relay @ 2023-03-10 8:07 UTC (permalink / raw)
To: Marcel Holtmann, Johan Hedberg, Luiz Augusto von Dentz
Cc: linux-bluetooth, stable, linux-kernel, Sasha Finkelstein
From: Sasha Finkelstein <fnkl.kernel@gmail.com>
This patch fixes an incorrect loop exit condition in code that replaces
'/' symbols in the board name. There might also be a memory corruption
issue here, but it is unlikely to be a real problem.
Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
---
drivers/bluetooth/btbcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c
index 3006e2a0f37e..43e98a598bd9 100644
--- a/drivers/bluetooth/btbcm.c
+++ b/drivers/bluetooth/btbcm.c
@@ -511,7 +511,7 @@ static const char *btbcm_get_board_name(struct device *dev)
len = strlen(tmp) + 1;
board_type = devm_kzalloc(dev, len, GFP_KERNEL);
strscpy(board_type, tmp, len);
- for (i = 0; i < board_type[i]; i++) {
+ for (i = 0; i < len; i++) {
if (board_type[i] == '/')
board_type[i] = '-';
}
---
base-commit: c9c3395d5e3dcc6daee66c6908354d47bf98cb0c
change-id: 20230224-btbcm-wtf-ff32fed3e930
Best regards,
--
Sasha Finkelstein <fnkl.kernel@gmail.com>
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH RESEND] bluetooth: btbcm: Fix logic error in forming the board name.
2023-03-10 8:07 [PATCH RESEND] bluetooth: btbcm: Fix logic error in forming the board name Sasha Finkelstein via B4 Relay
@ 2023-03-10 8:10 ` Greg KH
2023-03-10 9:41 ` Sasha Finkelstein
0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2023-03-10 8:10 UTC (permalink / raw)
To: fnkl.kernel
Cc: Marcel Holtmann, Johan Hedberg, Luiz Augusto von Dentz,
linux-bluetooth, stable, linux-kernel
On Fri, Mar 10, 2023 at 09:07:33AM +0100, Sasha Finkelstein via B4 Relay wrote:
> From: Sasha Finkelstein <fnkl.kernel@gmail.com>
>
> This patch fixes an incorrect loop exit condition in code that replaces
> '/' symbols in the board name. There might also be a memory corruption
> issue here, but it is unlikely to be a real problem.
>
> Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
> ---
> drivers/bluetooth/btbcm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.
</formletter>
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH RESEND] bluetooth: btbcm: Fix logic error in forming the board name.
2023-03-10 8:10 ` Greg KH
@ 2023-03-10 9:41 ` Sasha Finkelstein
2023-03-10 9:53 ` Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Sasha Finkelstein @ 2023-03-10 9:41 UTC (permalink / raw)
To: Greg KH
Cc: Marcel Holtmann, Johan Hedberg, Luiz Augusto von Dentz,
linux-bluetooth, stable, linux-kernel
> <formletter>
>
> This is not the correct way to submit patches for inclusion in the
> stable kernel tree. Please read:
> https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
> for how to do this properly.
>
> </formletter>
Sorry about that, let's just skip the stable tree part for now then.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH RESEND] bluetooth: btbcm: Fix logic error in forming the board name.
2023-03-10 9:41 ` Sasha Finkelstein
@ 2023-03-10 9:53 ` Greg KH
0 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2023-03-10 9:53 UTC (permalink / raw)
To: Sasha Finkelstein
Cc: Marcel Holtmann, Johan Hedberg, Luiz Augusto von Dentz,
linux-bluetooth, stable, linux-kernel
On Fri, Mar 10, 2023 at 10:41:28AM +0100, Sasha Finkelstein wrote:
> > <formletter>
> >
> > This is not the correct way to submit patches for inclusion in the
> > stable kernel tree. Please read:
> > https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
> > for how to do this properly.
> >
> > </formletter>
> Sorry about that, let's just skip the stable tree part for now then.
That's not how to solve the problem, if it's a bug that needs to be
fixed in stable kernels, submit it properly and it will automatically be
propagated there as the documentation states.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH RESEND] bluetooth: btbcm: Fix logic error in forming the board name.
@ 2023-03-10 10:28 Sasha Finkelstein via B4 Relay
2023-03-14 23:10 ` patchwork-bot+bluetooth
0 siblings, 1 reply; 6+ messages in thread
From: Sasha Finkelstein via B4 Relay @ 2023-03-10 10:28 UTC (permalink / raw)
To: Marcel Holtmann, Johan Hedberg, Luiz Augusto von Dentz
Cc: linux-bluetooth, linux-kernel, stable, Sasha Finkelstein
From: Sasha Finkelstein <fnkl.kernel@gmail.com>
This patch fixes an incorrect loop exit condition in code that replaces
'/' symbols in the board name. There might also be a memory corruption
issue here, but it is unlikely to be a real problem.
Cc: <stable@vger.kernel.org>
Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
---
drivers/bluetooth/btbcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c
index 3006e2a0f37e..43e98a598bd9 100644
--- a/drivers/bluetooth/btbcm.c
+++ b/drivers/bluetooth/btbcm.c
@@ -511,7 +511,7 @@ static const char *btbcm_get_board_name(struct device *dev)
len = strlen(tmp) + 1;
board_type = devm_kzalloc(dev, len, GFP_KERNEL);
strscpy(board_type, tmp, len);
- for (i = 0; i < board_type[i]; i++) {
+ for (i = 0; i < len; i++) {
if (board_type[i] == '/')
board_type[i] = '-';
}
---
base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
change-id: 20230224-btbcm-wtf-ff32fed3e930
Best regards,
--
Sasha Finkelstein <fnkl.kernel@gmail.com>
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH RESEND] bluetooth: btbcm: Fix logic error in forming the board name.
2023-03-10 10:28 Sasha Finkelstein via B4 Relay
@ 2023-03-14 23:10 ` patchwork-bot+bluetooth
0 siblings, 0 replies; 6+ messages in thread
From: patchwork-bot+bluetooth @ 2023-03-14 23:10 UTC (permalink / raw)
To: Sasha Finkelstein via B4 Relay
Cc: marcel, johan.hedberg, luiz.dentz, linux-bluetooth, linux-kernel,
stable, fnkl.kernel
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Fri, 10 Mar 2023 11:28:42 +0100 you wrote:
> From: Sasha Finkelstein <fnkl.kernel@gmail.com>
>
> This patch fixes an incorrect loop exit condition in code that replaces
> '/' symbols in the board name. There might also be a memory corruption
> issue here, but it is unlikely to be a real problem.
>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
>
> [...]
Here is the summary with links:
- [RESEND] bluetooth: btbcm: Fix logic error in forming the board name.
https://git.kernel.org/bluetooth/bluetooth-next/c/3629e1ce7721
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] 6+ messages in thread
end of thread, other threads:[~2023-03-14 23:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-10 8:07 [PATCH RESEND] bluetooth: btbcm: Fix logic error in forming the board name Sasha Finkelstein via B4 Relay
2023-03-10 8:10 ` Greg KH
2023-03-10 9:41 ` Sasha Finkelstein
2023-03-10 9:53 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2023-03-10 10:28 Sasha Finkelstein via B4 Relay
2023-03-14 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