#4331 closed defect (fixed)

main_pci.c: Dereference after null check error spotted by Coverity

Reported by: Ryan Long Owned by: Daniel Hellstrom
Priority: normal Milestone: 6.1
Component: lib Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

CID 1399716: Dereference after null check in shell_pci_infodev().

   10. var_compare_op: Comparing bus to null implies that bus might be null.
358  if (!bus) {
   CID 1399716 (#1 of 1): Dereference after null check (FORWARD_NULL)11. var_deref_op: Dereferencing null pointer bus.
359    printf(" AT BUS:        0x%x via Host Bridge\n", bus->num);
360  } else {

Change History (2)

comment:1 Changed on 03/10/21 at 19:27:59 by Ryan Long

Owner: set to Daniel Hellstrom
Status: newassigned

comment:2 Changed on 02/10/23 at 15:01:17 by Joel Sherrill

Resolution: fixed
Status: assignedclosed

Commit had typo and closed the wrong ticket.

In 26e1610/rtems:

(The changeset message doesn't reference this ticket)

Note: See TracTickets for help on using tickets.