diff options
| author | Vladis Dronov <[email protected]> | 2020-08-11 15:01:29 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-09-04 16:12:52 +0000 |
| commit | e3b9fc7eec55e6fdc8beeed18f2ed207086341e2 (patch) | |
| tree | 9284d27813eeb7052edba394c0ccf9e4af2df8db /lib/dynamic_debug.c | |
| parent | kobject: Restore old behaviour of kobject_del(NULL) (diff) | |
| download | kernel-e3b9fc7eec55e6fdc8beeed18f2ed207086341e2.tar.gz kernel-e3b9fc7eec55e6fdc8beeed18f2ed207086341e2.zip | |
debugfs: Fix module state check condition
The '#ifdef MODULE' check in the original commit does not work as intended.
The code under the check is not built at all if CONFIG_DEBUG_FS=y. Fix this
by using a correct check.
Fixes: 275678e7a9be ("debugfs: Check module state before warning in {full/open}_proxy_open()")
Signed-off-by: Vladis Dronov <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
