projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cd3bf3
)
fbdev: fbcon: Destroy mutex on freeing struct fb_info
author
Shigeru Yoshida
<syoshida@redhat.com>
Sun, 21 Aug 2022 11:17:31 +0000
(20:17 +0900)
committer
Helge Deller
<deller@gmx.de>
Wed, 24 Aug 2022 19:47:08 +0000
(21:47 +0200)
It's needed to destroy bl_curve_mutex on freeing struct fb_info since
the mutex is embedded in the structure and initialized when it's
allocated.
Signed-off-by: Shigeru Yoshida <syoshida@redhat.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/core/fbsysfs.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/core/fbsysfs.c
b/drivers/video/fbdev/core/fbsysfs.c
index c2a60b187467e5f3a1bda2892ed61903f31984ce..4d7f63892dcc4381a78433577cb62a06f305c06c 100644
(file)
--- a/
drivers/video/fbdev/core/fbsysfs.c
+++ b/
drivers/video/fbdev/core/fbsysfs.c
@@
-84,6
+84,10
@@
void framebuffer_release(struct fb_info *info)
if (WARN_ON(refcount_read(&info->count)))
return;
+#if IS_ENABLED(CONFIG_FB_BACKLIGHT)
+ mutex_destroy(&info->bl_curve_mutex);
+#endif
+
kfree(info->apertures);
kfree(info);
}