diff options
| author | Filipe Manana <[email protected]> | 2024-11-14 15:38:27 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-11-28 19:46:59 +0000 |
| commit | b188ad7791899da8afe937e439e3086ffddd84a8 (patch) | |
| tree | e42922dc0701d9ecbb123633bb4cd3c7d91ba85f /security/selinux/hooks.c | |
| parent | btrfs: fix deadlock between transaction commits and extent locks (diff) | |
| download | kernel-b188ad7791899da8afe937e439e3086ffddd84a8.tar.gz kernel-b188ad7791899da8afe937e439e3086ffddd84a8.zip | |
btrfs: sysfs: advertise experimental features only if CONFIG_BTRFS_EXPERIMENTAL=y
We are advertising experimental features through sysfs if
CONFIG_BTRFS_DEBUG is set, without looking if CONFIG_BTRFS_EXPERIMENTAL
is set. This is wrong as it will result in reporting experimental
features as supported when CONFIG_BTRFS_EXPERIMENTAL is not set but
CONFIG_BTRFS_DEBUG is set.
Fix this by checking for CONFIG_BTRFS_EXPERIMENTAL instead of
CONFIG_BTRFS_DEBUG.
Fixes: 67cd3f221769 ("btrfs: split out CONFIG_BTRFS_EXPERIMENTAL from CONFIG_BTRFS_DEBUG")
Reviewed-by: Neal Gompa <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
