<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/MdeModulePkg/Bus/Spi, branch dependabot/github_actions/github/codeql-action-4</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Fgithub%2Fcodeql-action-4</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Fgithub%2Fcodeql-action-4'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2025-06-13T15:47:59+00:00</updated>
<entry>
<title>MdeModulePkg/SpiNorFlashJedecSfdp: Initialize AddressSize</title>
<updated>2025-06-13T15:47:59+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2025-05-19T18:29:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=73ecd7d8b22c3a366bf8ddd834a66d1f0ced6588'/>
<id>urn:sha1:73ecd7d8b22c3a366bf8ddd834a66d1f0ced6588</id>
<content type='text'>
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/SpiBus: Free handle buffers after LocateHandleBuffer</title>
<updated>2025-06-12T14:09:13+00:00</updated>
<author>
<name>Dongyan Qian</name>
<email>qiandongyan@loongson.cn</email>
</author>
<published>2025-06-11T03:56:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=58d3345d8c71ce4ab1c3dbf57a08408f61c1c295'/>
<id>urn:sha1:58d3345d8c71ce4ab1c3dbf57a08408f61c1c295</id>
<content type='text'>
Fix memory leaks by adding missing FreePool calls:
release SpiHcHandles in SpiBusEntry exit path.

REF: https://uefi.org/sites/default/files/resources/UEFI_Spec_Final_2.11.pdf
Chapter 7.3.15: "Services - Boot Services.LocateHandleBuffer":
It is the caller's responsibility to call the Boot Service.FreePool when
the caller no longer requires the contents of Buffer.

Signed-off-by: Dongyan Qian &lt;qiandongyan@loongson.cn&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Spi: Allow NULL WriteBuffer in FillWriteBuffer()</title>
<updated>2025-05-26T05:45:37+00:00</updated>
<author>
<name>PaddyDeng</name>
<email>v-paddydeng@microsoft.com</email>
</author>
<published>2025-05-09T06:14:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=93aeaa0812b75abb8637ec1a8f9883657f818a22'/>
<id>urn:sha1:93aeaa0812b75abb8637ec1a8f9883657f818a22</id>
<content type='text'>
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 &lt;v-paddydeng@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Spi: Solving potential null ptr deref. in SpiNorFlashJedecSfdp</title>
<updated>2025-05-05T06:26:16+00:00</updated>
<author>
<name>PaddyDeng</name>
<email>v-paddydeng@microsoft.com</email>
</author>
<published>2025-04-07T01:48:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=2cff8743ced9c2f79014a19077e91537fb938bb8'/>
<id>urn:sha1:2cff8743ced9c2f79014a19077e91537fb938bb8</id>
<content type='text'>
The pointer `Instance-&gt;SfdpBasicFlash` can be used before initializing.

Example code flow:
- CreateSpiNorFlashSfdpInstance: Allocate pool for `Instance`
    - InitialSpiNorFlashSfdpInstance
        - ReadSfdp
            - ReadSfdpHeader
                - FillWriteBuffer: Dereferencing
`Instance-&gt;SfdpBasicFlash`
            - ReadSfdpBasicParameterTable: Allocate pool for
`Instance-&gt;SfdpBasicFlash`

Check both `Instance` and `Instance-&gt;SfdpBasicFlash` should have
a non null value before dereferencing it. Otherwise use the defaut
value 0.

Also terminate the function if `Instance` or `WriteBuffer` is NULL.

Signed-off-by: Paddy Deng &lt;v-paddydeng@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg SpiBus: Use correct GUID</title>
<updated>2025-04-30T06:55:42+00:00</updated>
<author>
<name>Jack Hsieh</name>
<email>v-chhsieh@microsoft.com</email>
</author>
<published>2025-04-11T07:15:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=e1dee2bcfa8019fed37146321ceab03281d6108c'/>
<id>urn:sha1:e1dee2bcfa8019fed37146321ceab03281d6108c</id>
<content type='text'>
Fix incorrect guid in SpiBusDxe and add null checking for AllocateZeroPool in the SpiBus driver.

Signed-off-by: Jack Hsieh &lt;v-chhsieh@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: SpiHc: SpiHc Drivers</title>
<updated>2024-05-08T04:43:58+00:00</updated>
<author>
<name>Brit Chesley</name>
<email>brit.chesley@amd.com</email>
</author>
<published>2024-04-29T20:57:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=82b0358e3fd6be6d77e838618f69812bd28f26a2'/>
<id>urn:sha1:82b0358e3fd6be6d77e838618f69812bd28f26a2</id>
<content type='text'>
Added SpiHc DXE and SMM drivers. This code receives bus transactions
from the SpiBus layer and passes them onto the SpiHcPlatformLib

Platform Initialization Spec 1.7 volume 5 section 18.1.7

Bugzilla #4753

Cc: Abner Chang &lt;abner.chang@amd.com&gt;
Cc: Abdul Lateef Attar &lt;AbdulLateef.Attar@amd.com&gt;
Signed-off-by: Brit Chesley &lt;brit.chesley@amd.com&gt;
Reviewed-by: Abner Chang &lt;abner.chang@amd.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Bus/Spi/SpiBus: Adding SpiBus Drivers</title>
<updated>2024-05-08T04:43:58+00:00</updated>
<author>
<name>Brit Chesley</name>
<email>brit.chesley@amd.com</email>
</author>
<published>2024-04-29T20:32:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=efc7ccf9060e69a680dfa36111131a0951d983d3'/>
<id>urn:sha1:efc7ccf9060e69a680dfa36111131a0951d983d3</id>
<content type='text'>
Added SpiBus DXE and SMM drivers. This code translates SPI requests from
the application layer into SPI Bus transactions on the SPI host
controller. The code is responsible for checking if the transaction is
valid, then setting up the SPI clock and chip select properly before
passing the bus transaction to the host controller.

Platform Initialization Spec 1.7 volume 5 section 18.1.6

Bugzilla #4753

Cc: Abner Chang &lt;abner.chang@amd.com&gt;
Cc: Abdul Lateef Attar &lt;AbdulLateef.Attar@amd.com&gt;
Signed-off-by: Brit Chesley &lt;brit.chesley@amd.com&gt;
Reviewed-by: Abner Chang &lt;abner.chang@amd.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/SpiNorFlashJedecSfdp: SPI NOR Flash JEDEC SFDP</title>
<updated>2024-04-20T08:26:40+00:00</updated>
<author>
<name>abnchang</name>
<email>abnchang@amd.com</email>
</author>
<published>2023-06-17T21:44:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=8b02ecc5f04cac5eb1b7c4a79a800e97bcf205fa'/>
<id>urn:sha1:8b02ecc5f04cac5eb1b7c4a79a800e97bcf205fa</id>
<content type='text'>
BZ#: 4471
SPI NOR Flash JEDEC Serial Flash Discoverable Driver
implementation.

Signed-off-by: Abner Chang &lt;abner.chang@amd.com&gt;
Cc: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Cc: Ray Ni &lt;ray.ni@intel.com&gt;
Cc: Abdul Lateef Attar &lt;abdattar@amd.com&gt;
Cc: Brit Chesley &lt;brit.chesley@amd.com&gt;
Reviewed-by: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
</content>
</entry>
</feed>
