Yang Yingliang 11cd944bb8 drm/nouveau/debugfs: fix file release memory leak
[ Upstream commit f5a8703a9c418c6fc54eb772712dfe7641e3991c ]

When using single_open() for opening, single_release() should be
called, otherwise the 'op' allocated in single_open() will be leaked.

Fixes: 6e9fc177399f ("drm/nouveau/debugfs: add copy of sysfs pstate interface ported to debugfs")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210911075023.3969054-2-yangyingliang@huawei.com
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-10-13 10:08:20 +02:00
..
2021-07-19 08:53:15 +02:00
2019-08-14 18:31:10 +02:00
2019-09-19 16:24:24 -07:00
2019-08-14 18:30:52 +02:00
2019-12-13 08:42:56 +01:00
2021-09-03 10:08:14 +02:00
2019-09-19 16:24:24 -07:00
2019-06-30 09:48:05 +02:00
2019-08-09 09:15:05 +02:00
2019-07-17 12:52:55 +02:00
2020-06-30 15:37:11 -04:00
2019-07-15 18:11:31 +02:00
2019-07-17 12:52:55 +02:00
2019-07-17 12:52:55 +02:00
2021-05-11 14:04:10 +02:00
2019-06-19 12:07:29 +02:00
2019-06-19 12:07:29 +02:00
2020-02-11 04:35:36 -08:00
2019-06-19 12:07:29 +02:00
2021-01-27 11:47:42 +01:00
2021-03-30 14:35:22 +02:00