]> asedeno.scripts.mit.edu Git - linux.git/commit
rtw88: fix seq_file memory leak
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 4 Sep 2019 14:16:01 +0000 (14:16 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 6 Sep 2019 14:10:33 +0000 (17:10 +0300)
commiteb9affaeff701ce90fcf476ff5332624f9d0ddd2
treebc3eb7880fc10041d738d9954a70060eb2d7e00a
parent64827a6ac04993c42aae7c3fed4c3b74c14da693
rtw88: fix seq_file memory leak

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

This is detected by Coccinelle semantic patch.

Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/debug.c