]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bluetooth: btbcm: Fix logic error in forming the board name.
authorSasha Finkelstein <fnkl.kernel@gmail.com>
Fri, 10 Mar 2023 10:28:42 +0000 (11:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:35:06 +0000 (12:35 +0200)
commitba7d93969275b703c8dc4ae48feea7adbcc5f567
tree8ba14b85d939d329b1c80be9eafaf8cf17129d8b
parentf6719fd8f409fa1da8dc956e93822d25e1e8b360
bluetooth: btbcm: Fix logic error in forming the board name.

commit b76abe4648c1acc791a207e7c08d1719eb9f4ea8 upstream.

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>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bluetooth/btbcm.c