Commit 9479af0
boot/bootutil: Fix probable uninitialized flash_area access
The commit fixes issue where failed flash_area_open in
boot_write_status would result in flash_area_close call on
uninitialized flash_area object.
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>1 parent 29fc848 commit 9479af0
1 file changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
456 | | - | |
| 455 | + | |
457 | 456 | | |
458 | 457 | | |
459 | 458 | | |
| |||
466 | 465 | | |
467 | 466 | | |
468 | 467 | | |
469 | | - | |
470 | 468 | | |
471 | 469 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | 470 | | |
| 471 | + | |
476 | 472 | | |
477 | 473 | | |
478 | 474 | | |
| |||
0 commit comments