[PATCH 02/33] fbdev: locking check for fb_set_suspend
Daniel Vetter
daniel.vetter at ffwll.ch
Tue May 28 09:02:33 UTC 2019
Just drive-by, nothing systematic yet.
Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
Reviewed-by: Sam Ravnborg <sam at ravnborg.org>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie at samsung.com>
Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
Cc: "Michał Mirosław" <mirq-linux at rere.qmqm.pl>
Cc: Peter Rosin <peda at axentia.se>
Cc: Hans de Goede <hdegoede at redhat.com>
Cc: Thomas Zimmermann <tzimmermann at suse.de>
Cc: Manfred Schlaegl <manfred.schlaegl at ginzinger.com>
Cc: Mikulas Patocka <mpatocka at redhat.com>
Cc: Kees Cook <keescook at chromium.org>
---
drivers/video/fbdev/core/fbmem.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/fbmem.c
index d1949c92be98..8ba674ffb3c9 100644
--- a/drivers/video/fbdev/core/fbmem.c
+++ b/drivers/video/fbdev/core/fbmem.c
@@ -1985,6 +1985,8 @@ void fb_set_suspend(struct fb_info *info, int state)
{
struct fb_event event;
+ WARN_CONSOLE_UNLOCKED();
+
event.info = info;
if (state) {
fb_notifier_call_chain(FB_EVENT_SUSPEND, &event);
--
2.20.1
More information about the dri-devel
mailing list