rtlwifi: Fix file release memory leak
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 4 Sep 2019 14:16:11 +0000 (14:16 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 6 Sep 2019 14:11:36 +0000 (17:11 +0300)
commit4c3e48794dec7cb568974ba3bf2ab62b9c45ca3e
treebdff92d4e6c29e27b6b97d9777c2d9c7002cdda4
parenteb9affaeff701ce90fcf476ff5332624f9d0ddd2
rtlwifi: 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.

This is detected by Coccinelle semantic patch.

Fixes: 610247f46feb ("rtlwifi: Improve debugging by using debugfs")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/debug.c