]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: debugfs: Fix file release memory leak
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 8 Jun 2022 09:01:52 +0000 (09:01 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Jul 2022 10:25:36 +0000 (12:25 +0200)
commit6a2e0978cee327fa9105c13666a6390608880b52
tree60680da5fa861a7f85075a47d8f2c5920712438f
parent433ebd232f6cd81b17b8aef332bcbf2e7e497571
mmc: debugfs: Fix file release memory leak

When using single_open() for opening, single_release() should be
used instead of seq_release(), otherwise there is a memory leak.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20220608090152.179395-1-weiyongjun1@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/debugfs.c