]> git.sur5r.net Git - openocd/commit
stlink: avoid null pointer dereference in stlink_usb_close()
authorPaul Fertser <fercerpav@gmail.com>
Sun, 15 Feb 2015 18:37:16 +0000 (21:37 +0300)
committerPaul Fertser <fercerpav@gmail.com>
Mon, 9 Mar 2015 06:38:52 +0000 (06:38 +0000)
commitd019080dfaa6c0c49228ecec2ad0c585ac65cb73
treeac441b70247da086791c411b34c0440cfa62650f
parentb4b1976e4e01bdc0b33312cda593d7593bae30a9
stlink: avoid null pointer dereference in stlink_usb_close()

Otherwise it happens if stlink can not be opened on start.

Change-Id: I7088f10e61508dae230eccfe576a51498c92f5b8
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2550
Tested-by: jenkins
Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-by: Stian Skjelstad <stian@nixia.no>
src/jtag/drivers/stlink_usb.c