HomeFreeBSD

usbhid(4): Fix NULL pointer dereference in usbd_xfer_max_len()

Description

usbhid(4): Fix NULL pointer dereference in usbd_xfer_max_len()

Which happens when USB transfer setup is failed.

MFC after: 1 week
PR: 254974
Reviewed by: hselasky
Differential revision: https://reviews.freebsd.org/D30485

Details

Provenance
wulfAuthored on May 28 2021, 8:13 PM
Reviewer
hselasky
Differential Revision
D30485: usbhid(4): Fix NULL pointer dereference in usbd_xfer_max_len()
Parents
rGd513292e74a8: [bhnd] remove unused sc variable
Branches
Unknown
Tags
Unknown