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.
22 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 1401394:  Null pointer dereferences  (NULL_RETURNS)
/src/soc/intel/broadwell/romstage/raminit.c: 125 in raminit()


________________________________________________________________________________________________________
*** CID 1401394:  Null pointer dereferences  (NULL_RETURNS)
/src/soc/intel/broadwell/romstage/raminit.c: 125 in raminit()
119                     mrc_cache_stash_data(MRC_TRAINING_DATA, 0,
120                                             pei_data->data_to_save,
121                                             pei_data->data_to_save_size);
122     
123             printk(BIOS_DEBUG, "create cbmem for dimm information\n");
124             mem_info = cbmem_add(CBMEM_ID_MEMINFO, sizeof(struct 
memory_info));
>>>     CID 1401394:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be null "mem_info" when calling 
>>> "memset". [Note: The source code implementation of the function has been 
>>> overridden by a builtin model.]
125             memset(mem_info, 0, sizeof(*mem_info));
126             /* Translate pei_memory_info struct data into memory_info 
struct */
127             mem_info->dimm_cnt = pei_data->meminfo.dimm_cnt;
128             for (int i = 0; i < MIN(DIMM_INFO_TOTAL, PEI_DIMM_INFO_TOTAL); 
i++) {
129                     struct dimm_info *dimm = &mem_info->dimm[i];
130                     const struct pei_dimm_info *pei_dimm =


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbLuoVetFLSjdonCi1EjfHRqWGQvojmmkYaBE-2BPJiTQvaU4HClancRgJSp1vcdHRWU-3D_q4bX76XMySz3BXBlWr5fXXJ4cvAsgEXEqC7dBPM7O5aq90-2FZ4E7MTwDlnjXqll-2B18oRQap6Hbegk-2FMxYq-2Bq0GY15VPEXqFkNzNDH-2BnoIL5zTi0hdUbOMSGcQq8u2tMr0VTzYN7nM7NDpy8tc4T7jPYRmD4GGV3NCHNOVpEq5Uzc0FPghgGqFNtSIOWeg-2FdJaU62o4owy7QWH2APoSAtR0ifht-2B6wbOi18Sen8qYSpUE-3D
_______________________________________________
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org

Reply via email to