Coverity-updates archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
New Defects reported by Coverity Scan for NetBSD-i386-kernel
Hi,
Please find the latest report on new defect(s) introduced to NetBSD-i386-kernel found with Coverity Scan.
2 new defect(s) introduced to NetBSD-i386-kernel found with Coverity Scan.
4 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 2 of 2 defect(s)
** CID 1250050: Unchecked return value (CHECKED_RETURN)
/sys/dev/pci/pci_map.c: 416 in pci_find_rom()
** CID 1250051: Dereference null return value (NULL_RETURNS)
/sys/arch/x86/x86/ipmi.c: 941 in ipmi_smbios_probe()
________________________________________________________________________________________________________
*** CID 1250050: Unchecked return value (CHECKED_RETURN)
/sys/dev/pci/pci_map.c: 416 in pci_find_rom()
410 (rom.rom_product == PCI_PRODUCT(pa->pa_id)) &&
411 (rom.rom_class == PCI_CLASS(pa->pa_class)) &&
412 (rom.rom_subclass == PCI_SUBCLASS(pa->pa_class)) &&
413 (rom.rom_interface == PCI_INTERFACE(pa->pa_class)) &&
414 (rom.rom_code_type == type)) {
415 *romsz = imagesz;
>>> CID 1250050: Unchecked return value (CHECKED_RETURN)
>>> No check of the return value of "bus_space_subregion(bst, bsh, offset, imagesz, romh)".
416 bus_space_subregion(bst, bsh, offset, imagesz, romh);
417 return 0;
418 }
419
420 /* last image check */
421 if (rom.rom_indicator & PCI_ROM_INDICATOR_LAST)
________________________________________________________________________________________________________
*** CID 1250051: Dereference null return value (NULL_RETURNS)
/sys/arch/x86/x86/ipmi.c: 941 in ipmi_smbios_probe()
935 ia->iaa_if_iotype = 'm';
936 ia->iaa_if_iobase = pipmi->smipmi_base_address & ~0xF;
937 }
938 if (pipmi->smipmi_base_flags & SMIPMI_FLAG_ODDOFFSET)
939 ia->iaa_if_iobase++;
940
>>> CID 1250051: Dereference null return value (NULL_RETURNS)
>>> Dereferencing a pointer that might be null "pmf_get_platform("system-product")" when calling "__coverity_strcmp(char const *, char const *)".
941 if (strcmp(pmf_get_platform("system-product"),
942 "ProLiant MicroServer") == 0) {
943 ia->iaa_if_iospacing = 1;
944 ia->iaa_if_iobase = pipmi->smipmi_base_address - 7;
945 ia->iaa_if_iotype = 'i';
946 return;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, http://scan.coverity.com/projects/1450?tab=overview
To unsubscribe from the email notification for new defects, http://scan5.coverity.com/cgi-bin/unsubscribe.py
Home |
Main Index |
Thread Index |
Old Index