This is an automated email from Gerrit. Paul Fertser ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2742
-- gerrit commit 8ef59e2b5c4eff50c72101f74725f9fed728882d Author: Paul Fertser <[email protected]> Date: Fri Apr 24 17:09:14 2015 +0300 jtag/drivers/ti_icdi: do not segfault when adapter can't be opened Change-Id: Id3af8dfd18b13947bca4f3c89c2516ccbcef60b6 Signed-off-by: Paul Fertser <[email protected]> diff --git a/src/jtag/drivers/ti_icdi_usb.c b/src/jtag/drivers/ti_icdi_usb.c index 53abbfb..ac45662 100644 --- a/src/jtag/drivers/ti_icdi_usb.c +++ b/src/jtag/drivers/ti_icdi_usb.c @@ -654,6 +654,9 @@ static int icdi_usb_close(void *handle) { struct icdi_usb_handle_s *h = handle; + if (!h) + return ERROR_OK; + if (h->usb_dev) libusb_close(h->usb_dev); -- ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
