summaryrefslogtreecommitdiffstats
path: root/lib/strnlen_user.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-09-22 10:55:42 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2024-09-22 10:55:42 -0700
commit533ab223aa1a036cfe5d6747fa3be92069f80988 (patch)
treeca2ccfc4f5895cc9cbaf2527e2a262e959d822bc /lib/strnlen_user.c
parent05f4216272c4b588c87551d3ba9bfb88b1bffaba (diff)
downloadlinux-stable-533ab223aa1a036cfe5d6747fa3be92069f80988.tar.gz
linux-stable-533ab223aa1a036cfe5d6747fa3be92069f80988.tar.bz2
linux-stable-533ab223aa1a036cfe5d6747fa3be92069f80988.zip
x86: make the masked_user_access_begin() macro use its argument only once
This doesn't actually matter for any of the current users, but before merging it mainline, make sure we don't have any surprising semantics. We don't actually want to use an inline function here, because we want to allow - but not require - const pointer arguments, and return them as such. But we already had a local auto-type variable, so let's just use it to avoid any possible double evaluation. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/strnlen_user.c')
0 files changed, 0 insertions, 0 deletions