aboutsummaryrefslogtreecommitdiff
path: root/lkm/nullfs
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2026-04-09 02:41:12 +0000
committerKyle Evans <kevans@FreeBSD.org>2026-04-09 02:41:12 +0000
commit84ce651836e0d037f611cd33a5c65e1d57049432 (patch)
tree595884758cd4600a9a16580821eaa3bae0ecfc49 /lkm/nullfs
parent22fba3a9d64140d80a9e2093cfc02c9c503b2e19 (diff)
<sys/extattr.h>: use designated initializers for EXTATTR_NAMESPACE_NAMESHEADmain
This is not a functional change, but it makes it more clear upon inspection of the definition that the mapping property described is preserved. Maybe more importantly, if one ends up getting an index wrong or punching a hole in the name array unexpectedly, then it'll hopefully manifest more clearly as a (null) or nullptr deref rather than potentially just emitting the wrong namespace name. It's noted that this almost certainly invalidates its use in C++, but there aren't really any known C++ consumers of it- let's just cross that bridge if we get there. Reviewed by: kib, mckusick, rmacklem Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D55323
Diffstat (limited to 'lkm/nullfs')
0 files changed, 0 insertions, 0 deletions