openocd/src
Christopher Head 6ec2ec4d32 src/flash/nor/virtual: handle null pointers
Either of protect and protect_check driver callbacks can be NULL. In
virtual_protect, reuse flash_driver_protect which checks for that case
and generates a nice error message and return code. In
virtual_protect_check, there is no corresponding flash_driver_*
function, so add the NULL check directly.

Change-Id: Ia63d85ede640a8382cf5cad0760f5d1ffe4d7cfe
Signed-off-by: Christopher Head <chead@zaber.com>
Reviewed-on: http://openocd.zylin.com/5782
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2020-08-09 15:30:23 +01:00
..
flash src/flash/nor/virtual: handle null pointers 2020-08-09 15:30:23 +01:00
helper log: fix kept_alive() and report expired timeout 2020-06-06 18:04:14 +01:00
jtag nulink: add minimal support for Nu-Link2 2020-08-02 10:48:20 +01:00
pld helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
rtos rtos: fix minor typos 2020-07-26 20:13:41 +01:00
server gdb_server: refuse gdb connection if target is not examined 2020-08-08 22:17:31 +01:00
svf svf: fix minor typos 2020-07-26 20:15:20 +01:00
target target: fix memory leaks on target_create() fail 2020-08-08 22:17:43 +01:00
transport transport: fix minor typos 2020-07-26 20:14:14 +01:00
xsvf xsvf: fix minor typos 2020-07-26 20:14:22 +01:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
hello.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
openocd.c openocd: fix issue in WIN32 with TCP adapters 2020-06-14 14:23:48 +01:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00