Skip to content

Commit 58559df

Browse files
Shigeru Yoshidahdeller
authored andcommitted
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 <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 1cd3bf3 commit 58559df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/video/fbdev/core/fbsysfs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ void framebuffer_release(struct fb_info *info)
8484
if (WARN_ON(refcount_read(&info->count)))
8585
return;
8686

87+
#if IS_ENABLED(CONFIG_FB_BACKLIGHT)
88+
mutex_destroy(&info->bl_curve_mutex);
89+
#endif
90+
8791
kfree(info->apertures);
8892
kfree(info);
8993
}

0 commit comments

Comments
 (0)