]> www.infradead.org Git - users/jedix/linux-maple.git/commit
debugfs: Fix the missing initializations in __debugfs_file_get()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 29 Jan 2025 19:19:37 +0000 (19:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Jan 2025 07:22:31 +0000 (08:22 +0100)
commit57b314752ec0ad42685bc78b376326f1f4c04669
treef490d8b8bb0769ad1677bb36f336af539f275291
parent72deda0abee6e705ae71a93f69f55e33be5bca5c
debugfs: Fix the missing initializations in __debugfs_file_get()

both method table pointers in debugfs_fsdata need to be initialized,
obviously, and calculating the bitmap of present methods would also
go better if we start with initialized state.

Fixes: 41a0ecc0997c ("debugfs: get rid of dynamically allocation proxy_ops")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/20250129191937.GR1977892@ZenIV
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/debugfs/file.c