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.

(cherry picked from commit ed87ff4e95d92033d161e93ec1a35ce001638bae)

Details

Provenance
gremboAuthored on May 17 2022, 9:37 AM
wulfCommitted on Dec 26 2022, 9:37 PM
Parents
rGae2c0f1edca1: bspatch.1: fix missing argument
Branches
Unknown
Tags
Unknown