Commit 58559dfc authored by Shigeru Yoshida's avatar Shigeru Yoshida Committed by Helge Deller

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: default avatarShigeru Yoshida <syoshida@redhat.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 1cd3bf33
...@@ -84,6 +84,10 @@ void framebuffer_release(struct fb_info *info) ...@@ -84,6 +84,10 @@ void framebuffer_release(struct fb_info *info)
if (WARN_ON(refcount_read(&info->count))) if (WARN_ON(refcount_read(&info->count)))
return; return;
#if IS_ENABLED(CONFIG_FB_BACKLIGHT)
mutex_destroy(&info->bl_curve_mutex);
#endif
kfree(info->apertures); kfree(info->apertures);
kfree(info); kfree(info);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment