mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
fbdev: fbcon: Destroy mutex on freeing struct fb_info
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>
This commit is contained in:
parent
1cd3bf3348
commit
58559dfc1e
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue