summaryrefslogtreecommitdiff
path: root/include/linux/workqueue_api.h
diff options
context:
space:
mode:
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>2025-11-27 07:45:36 +0300
committerShuah Khan <skhan@linuxfoundation.org>2025-12-15 22:33:28 +0300
commit1b9aaf36b7b40235e5a529c15848c3d866362207 (patch)
treeb1e4f17591accf422b3274421dc753c79e6d8ce9 /include/linux/workqueue_api.h
parent24858a84163c8d04827166b3bcaed80612bb62fc (diff)
downloadlinux-1b9aaf36b7b40235e5a529c15848c3d866362207.tar.xz
tools/cpupower: Use strcspn() to strip trailing newline
Replace manual newline removal with strcspn() which is safer and cleaner. This avoids potential out-of-bounds access on empty strings and handles the case where no newline exists. Link: https://lore.kernel.org/r/20251127044536.715722-1-kaushlendra.kumar@intel.com Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions