diff options
author | Dietmar Eggemann <[email protected]> | 2021-05-27 11:11:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-06-04 15:01:08 +0200 |
commit | f501b6a2312e27fffe671d461770426fe5162184 (patch) | |
tree | 6af391ab1c113efbe29dd13c9ae7213eb6a00647 /drivers/usb/cdns3/cdns3-imx.c | |
parent | 8124c8a6b35386f73523d27eacb71b5364a68c4c (diff) |
debugfs: Fix debugfs_read_file_str()
Read the entire size of the buffer, including the trailing new line
character.
Discovered while reading the sched domain names of CPU0:
before:
cat /sys/kernel/debug/sched/domains/cpu0/domain*/name
SMTMCDIE
after:
cat /sys/kernel/debug/sched/domains/cpu0/domain*/name
SMT
MC
DIE
Fixes: 9af0440ec86eb ("debugfs: Implement debugfs_create_str()")
Reviewed-by: Steven Rostedt (VMware) <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Dietmar Eggemann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions