Coverity spots that null pointer is passing to flash_img_buffered_write. This patch fixes the problem. Signed-off-by: NavinSankar Velliangiri <navin@linumiz.com>