On Thu, 15 Jan 2026 15:24:01 +0100, Enrico Jörns wrote:
> If write support for the underlying device is disabled (e.g. by
> disabling CONFIG_MCI_WRITE), blk->ops->write will be NULL.
> Unconditionally dereferencing/calling blk->ops->write() results in a
> NULL pointer dereference.
> 
> Fix this by making chunk_flush() a noop for missing write support.
> Don't return an error since there should be nothing to flush if write
> support is disabled, anyway.
> 
> [...]

Applied, thanks!

[1/1] block: don't error while flushing when write support is disabled
      https://git.pengutronix.de/cgit/barebox/commit/?id=ddeff3d01e3d (link may 
not be stable)

Best regards,
-- 
Sascha Hauer <[email protected]>


Reply via email to