aboutsummaryrefslogtreecommitdiff
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorBinbin Wu <[email protected]>2023-10-16 14:24:46 +0800
committerIngo Molnar <[email protected]>2023-10-16 11:39:57 +0200
commit29060633411a02f6f2dd9d5245919385d69d81f0 (patch)
tree46918fa25b56809a0ff41e58ea2a005c2280de6b /drivers/cdx/controller/cdx_controller.c
parentd6f274b7c8ac52abc81e898b62c3ff63fbeb11b8 (diff)
selftests/x86/lam: Zero out buffer for readlink()
Zero out the buffer for readlink() since readlink() does not append a terminating null byte to the buffer. Also change the buffer length passed to readlink() to 'PATH_MAX - 1' to ensure the resulting string is always null terminated. Fixes: 833c12ce0f430 ("selftests/x86/lam: Add inherit test cases for linear-address masking") Signed-off-by: Binbin Wu <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Kirill A. Shutemov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions