[Skiboot] [PATCH] libflash/libffs: Zero checksum words

Stewart Smith stewart at linux.vnet.ibm.com
Mon Jun 26 18:07:13 AEST 2017

Cyril Bur <cyril.bur at au1.ibm.com> writes:
> On writing ffs entries to flash libffs doesn't zero checksum words
> before calculating the checksum across the entire structure. This causes
> an inaccurate calculation of the checksum as it may calculate a checksum
> on non-zero checksum bytes.
> This patch solves this by zeroing the entire structure which is to be
> written to the flash before calculating the checksum across the struct.
> Fixes: 602dee45 libflash/libffs: Rework libffs
> Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>

Cheers, merged to master as of 6678e057ab5cfc3b4b6c63546e39d82dfb087df7

Stewart Smith
OPAL Architect, IBM.

More information about the Skiboot mailing list