[coreboot] New Defects reported by Coverity Scan for coreboot
scan-admin at coverity.com
scan-admin at coverity.com
Fri Nov 25 13:18:09 CET 2016
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.
9 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1366397: Control flow issues (DEADCODE)
/src/drivers/spi/spi_flash.c: 326 in __spi_flash_probe()
________________________________________________________________________________________________________
*** CID 1366397: Control flow issues (DEADCODE)
/src/drivers/spi/spi_flash.c: 326 in __spi_flash_probe()
320 for (i = 0; i < sizeof(idcode); i++)
321 printk(BIOS_SPEW, "%02x ", idcode[i]);
322 printk(BIOS_SPEW, "\n");
323 }
324
325 /* count the number of continuation bytes */
>>> CID 1366397: Control flow issues (DEADCODE)
>>> Execution cannot reach the expression "*idp == 127" inside this statement: "for ((shift = 0) , (idp = i...".
326 for (shift = 0, idp = idcode; shift < IDCODE_CONT_LEN && *idp == 0x7f;
327 ++shift, ++idp)
328 continue;
329
330 printk(BIOS_INFO, "Manufacturer: %02x\n", *idp);
331
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbLuoVetFLSjdonCi1EjfHRqWGQvojmmkYaBE-2BPJiTQvQ-3D-3D_q4bX76XMySz3BXBlWr5fXXJ4cvAsgEXEqC7dBPM7O5anFd39QpRijCjqn3WaAuC9BrIJaOefUjW50b1fq6eqehU1-2F2CtRdMxPttmjAcqy9LTxsL5Z8q8S649OKI5RGRqbzmTn18KezUwPrIc6O7BUjDRaGgvPxKUpSWUuVBAOtt3lTpxE94bGG0cZG6ImEbZ-2BE64GbuGbk7hiB9PDTMs1Yyj7UF36FjanLc-2F8Yh7wPA-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_q4bX76XMySz3BXBlWr5fXXJ4cvAsgEXEqC7dBPM7O5anFd39QpRijCjqn3WaAuC9gebXVKYECb59Lv84BXdBh-2B21OYh-2Bx1I-2FdB6XnYNZTuNMuby584pf4-2BomkzINXXvUyLzOMGLmJWpbcmrLVEL1hEH-2BAk9kQ-2Bf0zUKxF4ZslVfhkZVCCeiw2382Fpyyf-2BgducIiLOm94yN8iThqbaAZg9a0MqYn8lH2MQVxONgkcbw-3D
More information about the coreboot
mailing list