[PATCH v2 18/27] selftests/landlock: Fix regex_escape() error handling in matches_log_fs_extra()
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Wed Nov 4 21:19:03 UTC 2026
> Use a more conventional error handling interface in regex_escape():
> Return a ssize_t, which is either the number of bytes in the output,
> or return -1 and set errno.
>
> Before this change, the (log_match_cursor < 0) check in the call site
> was never true because log_match_cursor is a pointer.
>
> Signed-off-by: Günther Noack <gnoack3000 at gmail.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-selftests-refactor-v2-0-c52f23f7ce33@gmail.com?part=18
More information about the Linux-security-module-archive
mailing list