Skip to contentSkip to conversation

monitor: Fix crash when using RTT backend

PATCH Applied Szymon Janc 3 participants 4 messages Jun 24, 2022 – Jun 27, 2022 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 monitor: Fix crash when using RTT backend

This fix regression introduced by "monitor: Fix memory leaks". J-Link shared library is in use if jlink_init() returns 0 and thus handle shall not be closed.

---
 monitor/jlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
monitor/jlink.c +1 -1
index f1d8ce660..f9d4037f4 100644
@@ -112,7 +112,7 @@ int jlink_init(void)
 		return -EIO;
 	}
 
-	dlclose(so);
+	/* don't dlclose(so) here cause symbols from it are in use now */
 	return 0;
 }
 
Signature · 1 line
2.36.1
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=653494

---Test result---

Test Summary:

CheckPatch                    PASS      1.09 seconds
GitLint                       PASS      0.73 seconds
Prep - Setup ELL              PASS      43.22 seconds
Build - Prep                  PASS      0.55 seconds
Build - Configure             PASS      8.74 seconds
Build - Make                  PASS      1280.85 seconds
Make Check                    PASS      11.53 seconds
Make Check w/Valgrind         PASS      433.72 seconds
Make Distcheck                PASS      225.36 seconds
Build w/ext ELL - Configure   PASS      8.31 seconds
Build w/ext ELL - Make        PASS      1228.49 seconds
Incremental Build with patchesPASS      0.00 seconds

---
Regards,
Linux Bluetooth

author Applied
#2 lore raw

Hi,

Quoted 27 lines · On Fri, 24 Jun 2022 at 11:29, <[email protected]> wrote:

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=653494

---Test result---

Test Summary:

CheckPatch                    PASS      1.09 seconds
GitLint                       PASS      0.73 seconds
Prep - Setup ELL              PASS      43.22 seconds
Build - Prep                  PASS      0.55 seconds
Build - Configure             PASS      8.74 seconds
Build - Make                  PASS      1280.85 seconds
Make Check                    PASS      11.53 seconds
Make Check w/Valgrind         PASS      433.72 seconds
Make Distcheck                PASS      225.36 seconds
Build w/ext ELL - Configure   PASS      8.31 seconds
Build w/ext ELL - Make        PASS      1228.49 seconds
Incremental Build with patchesPASS      0.00 seconds
Quoted 4 lines

---
Regards,
Linux Bluetooth

Applied.

Signature · 2 lines
pozdrawiam
Szymon K. Janc
#3 lore raw
In reply to Szymon Janc
This patch was applied to bluetooth/bluez.git (master) by Szymon Janc <[email protected]>:

Hello:

This patch was applied to bluetooth/bluez.git (master) by Szymon Janc <[email protected]>:

Quoted 6 lines · On Fri, 24 Jun 2022 10:25:41 +0200 you wrote:

This fix regression introduced by "monitor: Fix memory leaks". J-Link shared library is in use if jlink_init() returns 0 and thus handle shall not be closed.

---
 monitor/jlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- monitor: Fix crash when using RTT backend

    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=1d6cfb8e625a

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html