HomeFreeBSD

hidraw: Return string lengths for certain ioctls

Description

hidraw: Return string lengths for certain ioctls

Make HIDIOCGRAWPHYS, HIDIOCGRAWNAME, and HIDIOCGRAWUNIQ return
the length of the copied out string (including the trailing NUL
character), so they behave like their Linux hidraw counterparts.

Reviewed by: wulf
Differential Revision: https://reviews.freebsd.org/D35233

Details

Provenance
gremboAuthored on May 17 2022, 9:37 AM
Reviewer
wulf
Differential Revision
D35233: hidraw: Return string lengths for certain ioctls
Parents
rGf8f1e9cd1cee: bsd-family-tree: FreeBSD 13.1
Branches
Unknown
Tags
Unknown