Commit c0369093 authored by Ye Bin's avatar Ye Bin Committed by sanglipeng
Browse files

mmc: mmc_test: Fix removal of debugfs file

stable inclusion
from stable-v5.10.158
commit b79be962b567e857470b454d564baea5014ee94b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7NTXH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b79be962b567e857470b454d564baea5014ee94b



--------------------------------

commit f4307b4d upstream.

In __mmc_test_register_dbgfs_file(), we need to assign 'file', as it's
being used when removing the debugfs files when the mmc_test module is
removed.

Fixes: a04c50aa ("mmc: core: no need to check return value of debugfs_create functions")
Signed-off-by: default avatarYe Bin <yebin10@huawei.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
[Ulf: Re-wrote the commit msg]
Link: https://lore.kernel.org/r/20221123095506.1965691-1-yebin@huaweicloud.com


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 592dac6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment