[Skiboot] [PATCH] libflash/blocklevel: Correct miscalculation in blocklevel_smart_erase()

Stewart Smith stewart at linux.vnet.ibm.com
Thu Mar 1 15:02:46 AEDT 2018

Cyril Bur <cyril.bur at au1.ibm.com> writes:
> If blocklevel_smart_erase() detects that the smart erase fits entire in
> one erase block, it has an early bail path. In this path it miscaculates
> where in the buffer the backend needs to read from to perform the final
> write.
> Fixes: d6a5b53f ("libflash/blocklevel: Add blocklevel_smart_erase()")
> Fixes: https://github.com/open-power/skiboot/issues/151
> Reported-by: Pridhiviraj Paidipeddi <ppaidipe at linux.vnet.ibm.com>
> Tested-by: Pridhiviraj Paidipeddi <ppaidipe at linux.vnet.ibm.com>
> Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
> ---
>  libflash/blocklevel.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)


Merged to master as of 682e196627a062731dc2596276013f2e9fa9f6db

and I created a 5.10.x stable branch and merged it there as of

Stewart Smith
OPAL Architect, IBM.

More information about the Skiboot mailing list