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. 1 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 1451732: Incorrect expression (SIZEOF_MISMATCH) /src/soc/ti/am335x/mmc.c: 263 in am335x_mmc_init_storage()
________________________________________________________________________________________________________ *** CID 1451732: Incorrect expression (SIZEOF_MISMATCH) /src/soc/ti/am335x/mmc.c: 263 in am335x_mmc_init_storage() 257 258 int am335x_mmc_init_storage(struct am335x_mmc_host *mmc_host) 259 { 260 int err = 0; 261 262 struct sd_mmc_ctrlr *mmc_ctrlr = &mmc_host->sd_mmc_ctrlr;
CID 1451732: Incorrect expression (SIZEOF_MISMATCH) Passing argument "mmc_ctrlr" of type "struct sd_mmc_ctrlr *" and argument "4U /* sizeof (mmc_ctrlr) */" to function "memset" is suspicious.
263 memset(mmc_ctrlr, 0, sizeof(mmc_ctrlr)); 264 265 266 err = am335x_mmc_init(mmc_host->reg); 267 if (err != 0) { 268 printk(BIOS_ERR, "ERROR: Initialising AM335X SD failed.\n");
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...