mbox series

[v1,0/2] hw/ppc: SPI model - coverity fixes

Message ID 20240806134829.351703-1-chalapathi.v@linux.ibm.com (mailing list archive)
Headers show
Series hw/ppc: SPI model - coverity fixes | expand

Message

Chalapathi V Aug. 6, 2024, 1:48 p.m. UTC
Hello,

In this patchset below defects detected during coverity scan for latest
spi model changes were fixed.

- CID 1558831:  Resource leaks  (RESOURCE_LEAK)
  Variable "rsp_payload" going out of scope leaks the storage it points to.
- CID 1558827:    (OVERRUN)
  Overrunning array "s->seq_op" of 8 bytes at byte offset 16 using index
  "get_seq_index(s) + 1" (which evaluates to 16).

Tested:
passed make check and make check-avocado

Chalapathi V (2):
  Fixes: Coverity CID 1558827
  Fixes: Coverity CID 1558831

 hw/ssi/pnv_spi.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)