]> git.sur5r.net Git - openocd/commit
target/adi_v5_swd: fix segfault when calling jtag_to_swd
authorPaul Fertser <fercerpav@gmail.com>
Sun, 17 Aug 2014 08:19:47 +0000 (12:19 +0400)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Mon, 8 Sep 2014 20:18:51 +0000 (20:18 +0000)
commitf8318d1b0d873ea4b4b78d2d5a71cf52932e4762
tree1925d753ceec8c73b65c6b73064f228a773c288d
parentbd0409aa938875ea5a8d8235f8996116be171b69
target/adi_v5_swd: fix segfault when calling jtag_to_swd

When SWD mode is not supported by the target adapter, the call should
return an error instead of segfaulting.

Change-Id: I1626097deb93ecfbe78a6e82d812c7a673dbbde5
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2256
Tested-by: jenkins
src/target/adi_v5_swd.c