HomeFreeBSD

linuxkpi: seq_read: Fix off by one error

Description

linuxkpi: seq_read: Fix off by one error

strscpy needs the buffer length not the string length (so including
the '\0').

Reviewed by: bz
Fixes: f697b9432d9c ("linuxkpi: drm-kmod debugfs support")
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D37771

(cherry picked from commit ccd8c4488afb15c2b866b58d5aa9dd994f300f95)

Details

Provenance
manuAuthored on Dec 21 2022, 11:42 AM
Reviewer
rGf697b9432d9c: linuxkpi: drm-kmod debugfs support
Differential Revision
D37771: linuxkpi: seq_read: Fix one by one error
Parents
rGf9a312f61ca2: linuxkpi: Fix style for dma_map_sgtable
Branches
Unknown
Tags
Unknown