openocd/src/flash
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
..
nand flash: fix typos and duplicated words 2020-07-26 20:13:22 +01:00
nor src/flash/nor/virtual: handle null pointers 2020-08-09 15:30:23 +01:00
common.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
common.h flash/nor: at91samd protection bits write fix 2016-12-08 12:19:19 +00:00
Makefile.am mflash: Remove this broken flash driver 2019-07-28 21:17:47 +01:00
startup.tcl flash/stm32l4x: add support of STM32WLEx devices 2020-03-23 21:52:10 +00:00