Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb9affae authored by Wei Yongjun's avatar Wei Yongjun Committed by Kalle Valo
Browse files

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: e3037485 ("rtw88: new Realtek 802.11ac driver")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 64827a6a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ static const struct file_operations file_ops_single_r = {
	.open = rtw_debugfs_single_open_rw,
	.read = seq_read,
	.llseek = seq_lseek,
	.release = seq_release,
	.release = single_release,
};

static const struct file_operations file_ops_single_rw = {