summaryrefslogtreecommitdiff
path: root/include/linux/bnge/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-07-10 11:33:14 +0200
committerChristian Brauner <brauner@kernel.org>2026-08-03 10:08:37 +0200
commitf9321c9f95a819aa298d81ad5f5c3b83d8c62698 (patch)
treef15003c22b2f9d49786dc5cb15dd650d813dbc5d /include/linux/bnge/git@git.tavy.me:linux.git
parent811b7e43ff834bdacc2d7714b478cd3db195d18e (diff)
binfmt_misc: factor out the entry matching
search_binfmt_handler() open-codes both match types in one loop body with the maskless magic comparison spelled as a manual xor loop that is just memcmp() in disguise. Move the extension and magic checks into helpers so the walk reads as policy - skip disabled entries, match by entry type - and the maskless case actually uses memcmp(). No functional change. Link: https://patch.msgid.link/20260710-work-binfmt_misc-locking-v3-13-a162f7cb58d6@kernel.org Reviewed-by: Jori Koolstra <jkoolstra@xs4all.nl> Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux/bnge/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions