Hi,

Please find the latest report on new defect(s) introduced to coreboot found 
with Coverity Scan.

15 new defect(s) introduced to coreboot found with Coverity Scan.
29 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 15 of 15 defect(s)


** CID 1386126:  Null pointer dereferences  (REVERSE_INULL)
/src/mainboard/siemens/mc_bdx1/mainboard.c: 266 in pca9538_get_dev()


________________________________________________________________________________________________________
*** CID 1386126:  Null pointer dereferences  (REVERSE_INULL)
/src/mainboard/siemens/mc_bdx1/mainboard.c: 266 in pca9538_get_dev()
260     {
261             struct device *dev = NULL;
262             do {
263                     dev = dev_find_path(dev, DEVICE_PATH_I2C);
264                     if (dev->path.i2c.device == PCA9538_SLAVE_ADR)
265                             break;
>>>     CID 1386126:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "dev" suggests that it may be null, but it has already 
>>> been dereferenced on all paths leading to the check.
266             } while (dev);
267             return dev;
268     }
269     
270     
271     BOOT_STATE_INIT_ENTRY(BS_DEV_ENUMERATE, BS_ON_ENTRY, 
wait_for_legacy_dev, NULL);

** CID 1384426:    (FORWARD_NULL)
/dev/cb-build/coreboot-coverity.0/PCENGINES_APU5/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
/dev/cb-build/coreboot-coverity.0/PCENGINES_APU4/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
/dev/cb-build/coreboot-coverity.0/PCENGINES_APU3/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
/dev/cb-build/coreboot-coverity.0/ODE_E21XX/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
/dev/cb-build/coreboot-coverity.0/GOOGLE_GRUNT/libagesa/amdlib.c: 489 in 
LibAmdCLFlush()
/dev/cb-build/coreboot-coverity.0/GOOGLE_KAHLEE/libagesa/amdlib.c: 489 in 
LibAmdCLFlush()
/dev/cb-build/coreboot-coverity.0/AMD_LAMAR/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
/src/vendorcode/amd/agesa/common/amdlib.c: 444 in LibAmdCLFlush()
/dev/cb-build/coreboot-coverity.0/AMD_BETTONG/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
/dev/cb-build/coreboot-coverity.0/AMD_DB_FT3B_LC/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
/dev/cb-build/coreboot-coverity.0/AMD_GARDENIA/libagesa/amdlib.c: 489 in 
LibAmdCLFlush()
/dev/cb-build/coreboot-coverity.0/PCENGINES_APU2/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
/dev/cb-build/coreboot-coverity.0/AMD_OLIVEHILLPLUS/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()


________________________________________________________________________________________________________
*** CID 1384426:    (FORWARD_NULL)
/dev/cb-build/coreboot-coverity.0/PCENGINES_APU5/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
486       UINT8  *address32;
487       UINTN  Index;
488       address32 = 0;
489       hwcrSave = SetFsBase (Address);
490       for (Index = 0; Index < Count; Index++){
491         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
492         _mm_clflush_fs (&address32 [Index * 64]);
493       }
494       RestoreHwcr (hwcrSave);
495     }
496     
497     
/dev/cb-build/coreboot-coverity.0/PCENGINES_APU4/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
486       UINT8  *address32;
487       UINTN  Index;
488       address32 = 0;
489       hwcrSave = SetFsBase (Address);
490       for (Index = 0; Index < Count; Index++){
491         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
492         _mm_clflush_fs (&address32 [Index * 64]);
493       }
494       RestoreHwcr (hwcrSave);
495     }
496     
497     
/dev/cb-build/coreboot-coverity.0/PCENGINES_APU3/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
486       UINT8  *address32;
487       UINTN  Index;
488       address32 = 0;
489       hwcrSave = SetFsBase (Address);
490       for (Index = 0; Index < Count; Index++){
491         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
492         _mm_clflush_fs (&address32 [Index * 64]);
493       }
494       RestoreHwcr (hwcrSave);
495     }
496     
497     
/dev/cb-build/coreboot-coverity.0/ODE_E21XX/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
486       UINT8  *address32;
487       UINTN  Index;
488       address32 = 0;
489       hwcrSave = SetFsBase (Address);
490       for (Index = 0; Index < Count; Index++){
491         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
492         _mm_clflush_fs (&address32 [Index * 64]);
493       }
494       RestoreHwcr (hwcrSave);
495     }
496     
497     
/dev/cb-build/coreboot-coverity.0/GOOGLE_GRUNT/libagesa/amdlib.c: 489 in 
LibAmdCLFlush()
483       UINT8  *address32;
484       UINTN  Index;
485       address32 = 0;
486       hwcrSave = SetFsBase (Address);
487       for (Index = 0; Index < Count; Index++){
488         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
489         _mm_clflush_fs (&address32 [Index * 64]);
490       }
491       RestoreHwcr (hwcrSave);
492     }
493     
494     
/dev/cb-build/coreboot-coverity.0/GOOGLE_KAHLEE/libagesa/amdlib.c: 489 in 
LibAmdCLFlush()
483       UINT8  *address32;
484       UINTN  Index;
485       address32 = 0;
486       hwcrSave = SetFsBase (Address);
487       for (Index = 0; Index < Count; Index++){
488         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
489         _mm_clflush_fs (&address32 [Index * 64]);
490       }
491       RestoreHwcr (hwcrSave);
492     }
493     
494     
/dev/cb-build/coreboot-coverity.0/AMD_LAMAR/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
486       UINT8  *address32;
487       UINTN  Index;
488       address32 = 0;
489       hwcrSave = SetFsBase (Address);
490       for (Index = 0; Index < Count; Index++){
491         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
492         _mm_clflush_fs (&address32 [Index * 64]);
493       }
494       RestoreHwcr (hwcrSave);
495     }
496     
497     
/src/vendorcode/amd/agesa/common/amdlib.c: 444 in LibAmdCLFlush()
438       UINT8  *address32;
439       UINTN  Index;
440       address32 = 0;
441       hwcrSave = SetFsBase (Address);
442       for (Index = 0; Index < Count; Index++){
443         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
444         _mm_clflush_fs (&address32 [Index * 64]);
445       }
446       RestoreHwcr (hwcrSave);
447     }
448     #endif //__SSE3__
449     
/dev/cb-build/coreboot-coverity.0/AMD_BETTONG/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
486       UINT8  *address32;
487       UINTN  Index;
488       address32 = 0;
489       hwcrSave = SetFsBase (Address);
490       for (Index = 0; Index < Count; Index++){
491         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
492         _mm_clflush_fs (&address32 [Index * 64]);
493       }
494       RestoreHwcr (hwcrSave);
495     }
496     
497     
/dev/cb-build/coreboot-coverity.0/AMD_DB_FT3B_LC/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
486       UINT8  *address32;
487       UINTN  Index;
488       address32 = 0;
489       hwcrSave = SetFsBase (Address);
490       for (Index = 0; Index < Count; Index++){
491         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
492         _mm_clflush_fs (&address32 [Index * 64]);
493       }
494       RestoreHwcr (hwcrSave);
495     }
496     
497     
/dev/cb-build/coreboot-coverity.0/AMD_GARDENIA/libagesa/amdlib.c: 489 in 
LibAmdCLFlush()
483       UINT8  *address32;
484       UINTN  Index;
485       address32 = 0;
486       hwcrSave = SetFsBase (Address);
487       for (Index = 0; Index < Count; Index++){
488         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
489         _mm_clflush_fs (&address32 [Index * 64]);
490       }
491       RestoreHwcr (hwcrSave);
492     }
493     
494     
/dev/cb-build/coreboot-coverity.0/PCENGINES_APU2/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
486       UINT8  *address32;
487       UINTN  Index;
488       address32 = 0;
489       hwcrSave = SetFsBase (Address);
490       for (Index = 0; Index < Count; Index++){
491         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
492         _mm_clflush_fs (&address32 [Index * 64]);
493       }
494       RestoreHwcr (hwcrSave);
495     }
496     
497     
/dev/cb-build/coreboot-coverity.0/AMD_OLIVEHILLPLUS/libagesa/amdlib.c: 492 in 
LibAmdCLFlush()
486       UINT8  *address32;
487       UINTN  Index;
488       address32 = 0;
489       hwcrSave = SetFsBase (Address);
490       for (Index = 0; Index < Count; Index++){
491         _mm_mfence ();
>>>     CID 1384426:    (FORWARD_NULL)
>>>     Dereferencing null pointer "address32".
492         _mm_clflush_fs (&address32 [Index * 64]);
493       }
494       RestoreHwcr (hwcrSave);
495     }
496     
497     

** CID 1384425:  Control flow issues  (DEADCODE)
/src/soc/intel/broadwell/pmutil.c: 371 in clear_gpe_status()


________________________________________________________________________________________________________
*** CID 1384425:  Control flow issues  (DEADCODE)
/src/soc/intel/broadwell/pmutil.c: 371 in clear_gpe_status()
365             return gpe0_sts;
366     }
367     
368     /* Clear all GPE status and return "standard" GPE event status */
369     u32 clear_gpe_status(void)
370     {
>>>     CID 1384425:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "gpe0_sts_3_bits[gpe0_sts_3_...".
371             const char *gpe0_sts_3_bits[] = {
372                     [1] = "HOTPLUG",
373                     [2] = "SWGPE",
374                     [6] = "TCO_SCI",
375                     [7] = "SMB_WAK",
376                     [9] = "PCI_EXP",

** CID 1384424:  Control flow issues  (DEADCODE)
/src/soc/intel/common/block/gpio/gpio.c: 329 in gpio_input()


________________________________________________________________________________________________________
*** CID 1384424:  Control flow issues  (DEADCODE)
/src/soc/intel/common/block/gpio/gpio.c: 329 in gpio_input()
323             struct pad_config cfg = PAD_CFG_GPI(gpio, UP_20K, DEEP);
324             gpio_configure_pad(&cfg);
325     }
326     
327     void gpio_input(gpio_t gpio)
328     {
>>>     CID 1384424:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "cfg.pad_config[cfg@dim1] = 0U;".
329             struct pad_config cfg = PAD_CFG_GPI(gpio, NONE, DEEP);
330             gpio_configure_pad(&cfg);
331     }
332     
333     void gpio_output(gpio_t gpio, int value)
334     {

** CID 1384423:  Insecure data handling  (TAINTED_SCALAR)
/src/commonlib/fsp_relocate.c: 192 in te_relocate()


________________________________________________________________________________________________________
*** CID 1384423:  Insecure data handling  (TAINTED_SCALAR)
/src/commonlib/fsp_relocate.c: 192 in te_relocate()
186     
187                             if (type == EFI_IMAGE_REL_BASED_HIGHLOW) {
188                                     uint32_t *reloc_addr;
189                                     uint32_t val;
190     
191                                     offset += rva_offset;
>>>     CID 1384423:  Insecure data handling  (TAINTED_SCALAR)
>>>     Using tainted variable "offset" as an index to pointer "te_base".
192                                     reloc_addr = (void *)&te_base[offset];
193                                     val = read_le32(reloc_addr);
194     
195                                     printk(FSP_DBG_LVL, "Adjusting %p %x -> 
%x\n",
196                                             reloc_addr, val, val + adj);
197                                     write_le32(reloc_addr, val + adj);

** CID 1384422:    (DEADCODE)
/src/soc/intel/broadwell/pmutil.c: 151 in print_smi_status()
/src/southbridge/intel/lynxpoint/pmutil.c: 158 in print_smi_status()


________________________________________________________________________________________________________
*** CID 1384422:    (DEADCODE)
/src/soc/intel/broadwell/pmutil.c: 151 in print_smi_status()
145             return smi_sts;
146     }
147     
148     /* Print SMI status bits */
149     static u32 print_smi_status(u32 smi_sts)
150     {
>>>     CID 1384422:    (DEADCODE)
>>>     Execution cannot reach this statement: "smi_sts_bits[smi_sts_bits@d...".
151             const char *smi_sts_bits[] = {
152                     [2] = "BIOS",
153                     [3] = "LEGACY_USB",
154                     [4] = "SLP_SMI",
155                     [5] = "APM",
156                     [6] = "SWSMI_TMR",
/src/southbridge/intel/lynxpoint/pmutil.c: 158 in print_smi_status()
152             return smi_sts;
153     }
154     
155     /* Print SMI status bits */
156     static u32 print_smi_status(u32 smi_sts)
157     {
>>>     CID 1384422:    (DEADCODE)
>>>     Execution cannot reach this statement: "smi_sts_bits[smi_sts_bits@d...".
158             const char *smi_sts_bits[] = {
159                     [2] = "BIOS",
160                     [3] = "LEGACY_USB",
161                     [4] = "SLP_SMI",
162                     [5] = "APM",
163                     [6] = "SWSMI_TMR",

** CID 1384421:    (DEADCODE)
/src/southbridge/intel/lynxpoint/pmutil.c: 338 in print_tco_status()
/src/soc/intel/broadwell/pmutil.c: 282 in print_tco_status()


________________________________________________________________________________________________________
*** CID 1384421:    (DEADCODE)
/src/southbridge/intel/lynxpoint/pmutil.c: 338 in print_tco_status()
332             return tco_sts & tco_en;
333     }
334     
335     /* Print TCO status bits */
336     static u32 print_tco_status(u32 tco_sts)
337     {
>>>     CID 1384421:    (DEADCODE)
>>>     Execution cannot reach this statement: "tco_sts_bits[tco_sts_bits@d...".
338             const char *tco_sts_bits[] = {
339                     [0] = "NMI2SMI",
340                     [1] = "SW_TCO",
341                     [2] = "TCO_INT",
342                     [3] = "TIMEOUT",
343                     [7] = "NEWCENTURY",
/src/soc/intel/broadwell/pmutil.c: 282 in print_tco_status()
276             return tco_sts & tco_en;
277     }
278     
279     /* Print TCO status bits */
280     static u32 print_tco_status(u32 tco_sts)
281     {
>>>     CID 1384421:    (DEADCODE)
>>>     Execution cannot reach this statement: "tco_sts_bits[tco_sts_bits@d...".
282             const char *tco_sts_bits[] = {
283                     [0] = "NMI2SMI",
284                     [1] = "SW_TCO",
285                     [2] = "TCO_INT",
286                     [3] = "TIMEOUT",
287                     [7] = "NEWCENTURY",

** CID 1384420:  Control flow issues  (DEADCODE)
/src/soc/intel/common/block/gpio/gpio.c: 335 in gpio_output()


________________________________________________________________________________________________________
*** CID 1384420:  Control flow issues  (DEADCODE)
/src/soc/intel/common/block/gpio/gpio.c: 335 in gpio_output()
329             struct pad_config cfg = PAD_CFG_GPI(gpio, NONE, DEEP);
330             gpio_configure_pad(&cfg);
331     }
332     
333     void gpio_output(gpio_t gpio, int value)
334     {
>>>     CID 1384420:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "cfg.pad_config[cfg@dim1] = 0U;".
335             struct pad_config cfg = PAD_CFG_GPO(gpio, value, DEEP);
336             gpio_configure_pad(&cfg);
337     }
338     
339     int gpio_get(gpio_t gpio_num)
340     {

** CID 1384419:  Control flow issues  (DEADCODE)
/src/soc/intel/common/block/gpio/gpio.c: 323 in gpio_input_pullup()


________________________________________________________________________________________________________
*** CID 1384419:  Control flow issues  (DEADCODE)
/src/soc/intel/common/block/gpio/gpio.c: 323 in gpio_input_pullup()
317             struct pad_config cfg = PAD_CFG_GPI(gpio, DN_20K, DEEP);
318             gpio_configure_pad(&cfg);
319     }
320     
321     void gpio_input_pullup(gpio_t gpio)
322     {
>>>     CID 1384419:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "cfg.pad_config[cfg@dim1] = 0U;".
323             struct pad_config cfg = PAD_CFG_GPI(gpio, UP_20K, DEEP);
324             gpio_configure_pad(&cfg);
325     }
326     
327     void gpio_input(gpio_t gpio)
328     {

** CID 1384418:  Memory - corruptions  (OVERRUN)


________________________________________________________________________________________________________
*** CID 1384418:  Memory - corruptions  (OVERRUN)
/src/soc/mediatek/mt8173/i2c.c: 327 in platform_i2c_transfer()
321     {
322             int ret = 0;
323             int i;
324             int read;
325     
326             for (i = 0; i < seg_count; i++) {
>>>     CID 1384418:  Memory - corruptions  (OVERRUN)
>>>     Overrunning struct type i2c_msg of 16 bytes by passing it to a function 
>>> which accesses it at byte offset 16.
327                     if (mtk_i2c_should_combine(&segments[i], seg_count - 
i)) {
328                             read = I2C_WRITE_READ_MODE;
329                     } else {
330                             read = (segments[i].flags & I2C_M_RD) ?
331                                     I2C_READ_MODE : I2C_WRITE_MODE;
332                     }

** CID 1384417:    (DEADCODE)
/src/southbridge/intel/lynxpoint/pmutil.c: 429 in clear_lpt_gpe_status()
/src/southbridge/intel/lynxpoint/pmutil.c: 456 in clear_lpt_gpe_status()


________________________________________________________________________________________________________
*** CID 1384417:    (DEADCODE)
/src/southbridge/intel/lynxpoint/pmutil.c: 429 in clear_lpt_gpe_status()
423             return gpe0_sts;
424     }
425     
426     /* Print, clear, and return LynxPoint-H GPE0 status */
427     static u32 clear_lpt_gpe_status(void)
428     {
>>>     CID 1384417:    (DEADCODE)
>>>     Execution cannot reach this statement: "gpe0_sts_bits_low[gpe0_sts_...".
429             const char *gpe0_sts_bits_low[] = {
430                     [1] = "HOTPLUG",
431                     [2] = "SWGPE",
432                     [6] = "TCO_SCI",
433                     [7] = "SMB_WAK",
434                     [8] = "RI",
/src/southbridge/intel/lynxpoint/pmutil.c: 456 in clear_lpt_gpe_status()
450                     [27] = "GPIO11",
451                     [28] = "GPIO12",
452                     [29] = "GPIO13",
453                     [30] = "GPIO14",
454                     [31] = "GPIO15",
455             };
>>>     CID 1384417:    (DEADCODE)
>>>     Execution cannot reach this statement: "gpe0_sts_bits_high[gpe0_sts...".
456             const char *gpe0_sts_bits_high[] = {
457                     [3] = "GPIO27",
458                     [6] = "WADT",
459                     [24] = "GPIO17",
460                     [25] = "GPIO19",
461                     [26] = "GPIO21",

** CID 1384416:    (DEADCODE)
/src/soc/intel/broadwell/pmutil.c: 102 in print_pm1_status()
/src/southbridge/intel/lynxpoint/pmutil.c: 109 in print_pm1_status()


________________________________________________________________________________________________________
*** CID 1384416:    (DEADCODE)
/src/soc/intel/broadwell/pmutil.c: 102 in print_pm1_status()
96      return pm1_sts;
97     }
98     
99     /* Print PM1 status bits */
100     static u16 print_pm1_status(u16 pm1_sts)
101     {
>>>     CID 1384416:    (DEADCODE)
>>>     Execution cannot reach this statement: "pm1_sts_bits[pm1_sts_bits@d...".
102             const char *pm1_sts_bits[] = {
103                     [0] = "TMROF",
104                     [4] = "BM",
105                     [5] = "GBL",
106                     [8] = "PWRBTN",
107                     [10] = "RTC",
/src/southbridge/intel/lynxpoint/pmutil.c: 109 in print_pm1_status()
103             return pm1_sts;
104     }
105     
106     /* Print PM1 status bits */
107     static u16 print_pm1_status(u16 pm1_sts)
108     {
>>>     CID 1384416:    (DEADCODE)
>>>     Execution cannot reach this statement: "pm1_sts_bits[pm1_sts_bits@d...".
109             const char *pm1_sts_bits[] = {
110                     [0] = "TMROF",
111                     [4] = "BM",
112                     [5] = "GBL",
113                     [8] = "PWRBTN",
114                     [10] = "RTC",

** CID 1384415:  Control flow issues  (DEADCODE)
/src/southbridge/intel/lynxpoint/pmutil.c: 481 in clear_lpt_lp_gpe_status()


________________________________________________________________________________________________________
*** CID 1384415:  Control flow issues  (DEADCODE)
/src/southbridge/intel/lynxpoint/pmutil.c: 481 in clear_lpt_lp_gpe_status()
475                                     gpe0_sts_bits_low);
476     }
477     
478     /* Print, clear, and return LynxPoint-LP GPE0 status */
479     static u32 clear_lpt_lp_gpe_status(void)
480     {
>>>     CID 1384415:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "gpe0_sts_4_bits[gpe0_sts_4_...".
481             const char *gpe0_sts_4_bits[] = {
482                     [1] = "HOTPLUG",
483                     [2] = "SWGPE",
484                     [6] = "TCO_SCI",
485                     [7] = "SMB_WAK",
486                     [9] = "PCI_EXP",

** CID 1384414:  Control flow issues  (DEADCODE)
/src/soc/intel/common/block/gpio/gpio.c: 317 in gpio_input_pulldown()


________________________________________________________________________________________________________
*** CID 1384414:  Control flow issues  (DEADCODE)
/src/soc/intel/common/block/gpio/gpio.c: 317 in gpio_input_pulldown()
311             const struct pad_community *comm = gpio_get_community(pad);
312             return comm->port;
313     }
314     
315     void gpio_input_pulldown(gpio_t gpio)
316     {
>>>     CID 1384414:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "cfg.pad_config[cfg@dim1] = 0U;".
317             struct pad_config cfg = PAD_CFG_GPI(gpio, DN_20K, DEEP);
318             gpio_configure_pad(&cfg);
319     }
320     
321     void gpio_input_pullup(gpio_t gpio)
322     {

** CID 1260798:  Incorrect expression  (IDENTICAL_BRANCHES)
/src/vendorcode/amd/agesa/f15tn/Proc/CPU/Family/0x15/cpuF15Utilities.c: 1038 in 
F15HtPhyOverrideDllCompensation()


________________________________________________________________________________________________________
*** CID 1260798:  Incorrect expression  (IDENTICAL_BRANCHES)
/src/vendorcode/amd/agesa/f15tn/Proc/CPU/Family/0x15/cpuF15Utilities.c: 1038 in 
F15HtPhyOverrideDllCompensation()
1032     
1033       if (!IsEarlyRevProcessor || IsHardwareReportingComp) {
1034         // Process all the sublink 0's and then all the sublink 1's that 
are at HT3 frequency.
1035         for (Sublink = 0; Sublink < 2; Sublink++) {
1036           CapabilitySet = StartingCapabilitySet;
1037           Link = 0;
>>>     CID 1260798:  Incorrect expression  (IDENTICAL_BRANCHES)
>>>     Ternary expression on condition "Sublink == 0UL" has identical then and 
>>> else expressions: "1ULL". Should one of the expressions be modified, or the 
>>> entire ternary expression replaced?
1038           DesiredLinkFeats.HtPhyLinkValue = ((Sublink == 0) ? 
HTPHY_LINKTYPE_SL0_HT3 : HTPHY_LINKTYPE_SL0_HT3);
1039           while (FamilySpecificServices->NextLinkHasHtPhyFeats (
1040                    FamilySpecificServices,
1041                    &CapabilitySet,
1042                    &Link,
1043                    &DesiredLinkFeats,


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbLuoVetFLSjdonCi1EjfHRqWGQvojmmkYaBE-2BPJiTQvQ-3D-3D_q4bX76XMySz3BXBlWr5fXXJ4cvAsgEXEqC7dBPM7O5YYRxKgLsJZsJOuhE-2B632fwtaT9mgpCNES9WItJEOt-2B9U-2F6VuR5M4jQBlQC5dYpHfBlu6F6qmUzwh8DKDWpnoKWbKgD29wbJ7GChz2yRj4KcN9WhFq8RpH0-2FEiMkbBRtdMyJED4P5YYZAAb5g9NfL3gCSMWQGGZVcSt-2F0PF0MDZn1qTeT4ealAtC4IsV-2B51qLc-3D


-- 
coreboot mailing list: coreboot@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot

Reply via email to