summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/xhci.c
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-06-29 06:04:45 +0000
committerdchagin <dchagin@FreeBSD.org>2016-06-29 06:04:45 +0000
commitc04eec0cf0d22693afb178c43250f77699c18964 (patch)
tree279989f94fd25d3b0028fe51986218095ad59dc6 /sys/dev/usb/controller/xhci.c
parentc912a7ae2b2e85f6a4660fdb2773854e53eddc43 (diff)
downloadFreeBSD-src-c04eec0cf0d22693afb178c43250f77699c18964.zip
FreeBSD-src-c04eec0cf0d22693afb178c43250f77699c18964.tar.gz
MFC r302213:
Fix a bug introduced in r283433. [1] Remove unneeded sockaddr conversion before kern_recvit() call as the from argument is used to record result (the source address of the received message) only. [2] In Linux the type of msg_namelen member of struct msghdr is signed but native msg_namelen has a unsigned type (socklen_t). So use the proper storage to fetch fromlen from userspace and than check the user supplied value and return EINVAL if it is less than 0 as a Linux do. Reported by: Thomas Mueller <tmueller at sysgo dot com> [1] Tested by: Thomas Mueller <tmueller at sysgo dot com> [both] Reviewed by: kib@
Diffstat (limited to 'sys/dev/usb/controller/xhci.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud