diff options
author | Sven Eckelmann <[email protected]> | 2021-08-02 18:24:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-08-05 14:42:40 +0200 |
commit | 112cedc8e600b668688eb809bf11817adec58ddc (patch) | |
tree | bc04589a1fc33416a3d8ecab7e5925b26e764be0 /drivers/fpga/altera-cvp.c | |
parent | fac58b4a5287c9d37c39d09d9bdc80846b744649 (diff) |
debugfs: Return error during {full/open}_proxy_open() on rmmod
If a kernel module gets unloaded then it printed report about a leak before
commit 275678e7a9be ("debugfs: Check module state before warning in
{full/open}_proxy_open()"). An additional check was added in this commit to
avoid this printing. But it was forgotten that the function must return an
error in this case because it was not actually opened.
As result, the systems started to crash or to hang when a module was
unloaded while something was trying to open a file.
Fixes: 275678e7a9be ("debugfs: Check module state before warning in {full/open}_proxy_open()")
Cc: Taehee Yoo <[email protected]>
Reported-by: Mário Lopes <[email protected]>
Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/altera-cvp.c')
0 files changed, 0 insertions, 0 deletions