This is an automated email from Gerrit. "Kendall Goto <[email protected]>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9568
-- gerrit commit aa394bfdc3c5b60019a55786075fcb2064b4c708 Author: Kendall Goto <[email protected]> Date: Wed Apr 8 11:05:45 2026 -0700 jtag: null global state during adapter_quit After we free config / adapter globals during adapter_quit, we should reset the global states back to null so that adapter_init is able to run again. Change-Id: I2debcb945ecfea0d1f6dafb16a9d82328d8c60c6 Signed-off-by: Kendall Goto <[email protected]> diff --git a/src/jtag/adapter.c b/src/jtag/adapter.c index 7bf049cd86..0d40d20432 100644 --- a/src/jtag/adapter.c +++ b/src/jtag/adapter.c @@ -196,6 +196,10 @@ int adapter_quit(void) free(adapter_config.serial); free(adapter_config.usb_location); + adapter_config.serial = NULL; + adapter_config.usb_location = NULL; + adapter_config.adapter_initialized = false; + adapter_driver = NULL; struct jtag_tap *t = jtag_all_taps(); while (t) { --
