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-amd64-kernel
Hi,
Please find the latest report on new defect(s) introduced to NetBSD-amd64-kernel found with Coverity Scan.
1 new defect(s) introduced to NetBSD-amd64-kernel found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1362563: Null pointer dereferences (REVERSE_INULL)
/sys/dev/usb/xhci.c: 2956 in xhci_setup_maxburst()
________________________________________________________________________________________________________
*** CID 1362563: Null pointer dereferences (REVERSE_INULL)
/sys/dev/usb/xhci.c: 2956 in xhci_setup_maxburst()
2950 uint32_t maxb = 0;
2951 uint16_t mps = UGETW(ed->wMaxPacketSize);
2952 uint8_t speed = dev->ud_speed;
2953 uint8_t ep;
2954
2955 /* config desc is NULL when opening ep0 */
>>> CID 1362563: 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.
2956 if (dev == NULL || dev->ud_cdesc == NULL)
2957 goto no_cdcd;
2958 cdcd = (const usb_cdc_descriptor_t *)usb_find_desc(dev,
2959 UDESC_INTERFACE, USBD_CDCSUBTYPE_ANY);
2960 if (cdcd == NULL)
2961 goto no_cdcd;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/netbsd-amd64-kernel?tab=overview
To manage Coverity Scan email notifications for "coverity-updates%netbsd.org@localhost", click https://scan.coverity.com/subscriptions/edit?email=coverity-updates%40netbsd.org&token=487286ca1a9a4f4bd485d16f66b5e782
Home |
Main Index |
Thread Index |
Old Index