summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorlonglong yan <yanlonglong@kylinos.cn>2026-07-22 09:51:29 +0800
committerJakub Kicinski <kuba@kernel.org>2026-07-23 07:18:53 -0700
commit94cdc6a2c837d33e64d9453e9110d35af3833eda (patch)
tree054bfca245d4eef7b2b58699db100988acc44da1 /scripts/patch-kernel
parent92f0217f8afd8c96288a5e88263d1a15cf98ceec (diff)
selftests/net: use MAP_FAILED instead of (void *)-1 in tcp_mmap
mmap() is documented to return MAP_FAILED on error, but tcp_mmap.c compares the return value against (void *)-1 and (unsigned char *)-1. Replace these with the standard MAP_FAILED macro for better readability and type safety. Signed-off-by: longlong yan <yanlonglong@kylinos.cn> Reviewed-by: Joe Damato <joe@dama.to> Reviewed-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20260722015129.916-1-yanlonglong@kylinos.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions