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-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq2SfQfrHt3Prsn4qSLrYIrajINpiFX8l0vrlNSf8iCrS27qY0Cr0DkycwNUgGZJj8-3DyFLz_L-2FDzr14mnrsJO5b1wX1hp9b1MAQygl7x-2B74RAaH2cn2BFz7Z1CAEeco1IvcYPbq2MoXcz2nCdeCFsmkjNYwjx-2Bo3jdAp5Wc7b2MssNEgpu-2B7oYLIel1mxc3eoy3Pilnh-2F5wUR7mxv5m7n5WWO1uhxh1hvMht6d2wqELAbN2yX9astErMEuIS8zFSeHsxFgqZ8LLAI0VYbXyXqQmdTgFQtZuwvFa3B5GTrjKl5W3DQGw-3D

_______________________________________________
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org

Reply via email to