[Bug 209636] usr/src/sys/dev/usb/controller/generic_ohci.c:169: possible bad size ?
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 19 10:53:11 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209636
Bug ID: 209636
Summary: usr/src/sys/dev/usb/controller/generic_ohci.c:169:
possible bad size ?
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: usb
Assignee: freebsd-usb at FreeBSD.org
Reporter: dcb314 at hotmail.com
[usr/src/sys/dev/usb/controller/generic_ohci.c:169]: (warning) Size of pointer
'clkp' used instead of size of its data.
Source code is
clkp = malloc(sizeof(clkp), M_DEVBUF, M_WAITOK | M_ZERO);
Maybe better code
clkp = malloc(sizeof(*clkp), M_DEVBUF, M_WAITOK | M_ZERO);
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-usb
mailing list