Files
u-boot/drivers/block
Simon Glass 8ff7005997 blkmap: Handle read-only slices in write path
Some blkmap slices (like blkmap_crypt) don't support writes and have
their write function set to NULL. The blkmap_blk_write_slice() function
calls the write function without checking if it's NULL, causing a crash
when attempting to write to such slices.

Add a NULL check before calling the write function. When the slice
doesn't support writes, return 0 to indicate no blocks were written.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
2026-01-01 14:27:30 -07:00
..
2025-06-02 08:25:41 -06:00
2025-07-02 13:07:47 -06:00
2025-11-17 06:59:47 -07:00
2024-10-24 11:20:45 -06:00