diff options
author | Takashi Iwai <[email protected]> | 2021-02-02 23:56:29 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2021-02-02 23:57:30 +0100 |
commit | 3c4ab49ec59b94651dea7c7b0104c781c79c62b5 (patch) | |
tree | d1760d3b1ce80d08c106df5c687adf364f7fded3 /scripts/gdb/linux/utils.py | |
parent | 016f94feb57d73b2c375f1ccd665bb546d401162 (diff) |
ALSA: core: Fix the debugfs removal at snd_card_free()
The commit 2d670ea2bd53 ("ALSA: jack: implement software jack
injection via debugfs") introduced a debugfs root for each sound card
object. The debugfs entry gets removed at the card removal, too, but
it turned out that debugfs_remove() is called at a wrong place; it's
after the card object gets freed, hence it leads to use-after-free.
Fix it by moving the debugfs_remove() at the right place, the
destructor of the card device.
Fixes: 2d670ea2bd53 ("ALSA: jack: implement software jack injection via debugfs")
Reported-and-tested-by: Chris Wilson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions