Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: 93aeaa0812b75abb8637ec1a8f9883657f818a22 https://github.com/tianocore/edk2/commit/93aeaa0812b75abb8637ec1a8f9883657f818a22 Author: PaddyDeng <v-paddyd...@microsoft.com> Date: 2025-05-26 (Mon, 26 May 2025)
Changed paths: M MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlash.c Log Message: ----------- MdeModulePkg/Spi: Allow NULL WriteBuffer in FillWriteBuffer() Fix false positive assert added in #10924 Functon `FillWriteBuffer()` should able to accept NULL WriteBuffer when WriteBytes equals 0. Use case: ``` // Read Status register TransactionBufferLength = FillWriteBuffer ( Instance, SPI_FLASH_RDSR, SPI_FLASH_RDSR_DUMMY, SPI_FLASH_RDSR_ADDR_BYTES, FALSE, 0, 0, // WriteBytes = 0 NULL // WriteBuffer can be NULL ); ``` Signed-off-by: Paddy Deng <v-paddyd...@microsoft.com> To unsubscribe from these emails, change your notification settings at https://github.com/tianocore/edk2/settings/notifications _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits