[coreboot] New Defects reported by Coverity Scan for coreboot
scan-admin at coverity.com
scan-admin at coverity.com
Tue Jun 27 14:32:04 CEST 2017
Hi,
Please find the latest report on new defect(s) introduced to coreboot found with Coverity Scan.
1 new defect(s) introduced to coreboot found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1376664: Null pointer dereferences (REVERSE_INULL)
/src/soc/amd/stoneyridge/northbridge.c: 666 in cpu_bus_scan()
________________________________________________________________________________________________________
*** CID 1376664: Null pointer dereferences (REVERSE_INULL)
/src/soc/amd/stoneyridge/northbridge.c: 666 in cpu_bus_scan()
660 * this silicon. It is an SOC and can't have >= 16 APICs, but
661 * we will start numbering at 0x10. We also know there is only
662 * on physical node (module in AMD speak).
663 */
664
665 lapicid_start = 0x10; /* Get this from devicetree? see comment above. */
>>> CID 1376664: Null pointer dereferences (REVERSE_INULL)
>>> Null-checking "cdb_dev" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
666 enable_node = cdb_dev && cdb_dev->enabled;
667 cpu_bus = dev->link_list;
668
669 for (j = 0; j <= siblings; j++ ) {
670 apic_id = lapicid_start + j;
671 printk(BIOS_SPEW, "lapicid_start 0x%x, node 0x%x, core 0x%x, apicid=0x%x\n",
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbLuoVetFLSjdonCi1EjfHRqWGQvojmmkYaBE-2BPJiTQvQ-3D-3D_q4bX76XMySz3BXBlWr5fXXJ4cvAsgEXEqC7dBPM7O5YHlErxQNKxiAlZCORBjgCCbwcSiLFp0uTHYq7TB6H9aXIdU8HBPH5qxHyoGv6q-2Bkeu-2FpsJa6wd4FttHAZO9P-2FmpomY40oVPT-2FgnaT7ENUG32YUyK2aqPzG0cUTJukACU0cNqcwtN4LhpGyNtINuIlmsvQop-2FfbdTz7yqXrua0xVW3jqiFxeLmf1wsSEeen4WA-3D
To manage Coverity Scan email notifications for "coreboot at coreboot.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4e-2BpBzwOa5gzBZa9dWpDbzfofODnVj1enK2UkK0-2BgCCqyeem8IVKvTxSaOFkteZFcnohwvb2rnYNjswGryEWCURnUk6WHU42sbOmtOjD-2Bx5c-3D_q4bX76XMySz3BXBlWr5fXXJ4cvAsgEXEqC7dBPM7O5YHlErxQNKxiAlZCORBjgCCti5lehqZDEj5idsKzRfLw0vI-2F9rdCZmSCQd-2BZUFEmAqAhKlpvWQBz6CiXORaIOHtKEXG6zvm-2FnX3LYwx91xyjmvhC4xL-2Fm5ekuOjDaqWxgIEGAluLnlJc5CAFZRZVj6RwlGWew5hRgmqnjJVFSofxKgtKGKYrZmzrDv1rVR1x1s-3D
More information about the coreboot
mailing list