[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190524085354.27411-3-daniel.vetter@ffwll.ch>
Date: Fri, 24 May 2019 10:53:23 +0200
From: Daniel Vetter <daniel.vetter@...ll.ch>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Intel Graphics Development <intel-gfx@...ts.freedesktop.org>,
DRI Development <dri-devel@...ts.freedesktop.org>,
Daniel Vetter <daniel.vetter@...ll.ch>,
Daniel Vetter <daniel.vetter@...el.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
Michał Mirosław <mirq-linux@...e.qmqm.pl>,
Peter Rosin <peda@...ntia.se>,
Hans de Goede <hdegoede@...hat.com>,
Thomas Zimmermann <tzimmermann@...e.de>,
Manfred Schlaegl <manfred.schlaegl@...zinger.com>,
Mikulas Patocka <mpatocka@...hat.com>,
Kees Cook <keescook@...omium.org>
Subject: [PATCH 02/33] fbdev: locking check for fb_set_suspend
Just drive-by, nothing systematic yet.
Signed-off-by: Daniel Vetter <daniel.vetter@...el.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
Cc: Daniel Vetter <daniel.vetter@...ll.ch>
Cc: "Michał Mirosław" <mirq-linux@...e.qmqm.pl>
Cc: Peter Rosin <peda@...ntia.se>
Cc: Hans de Goede <hdegoede@...hat.com>
Cc: Thomas Zimmermann <tzimmermann@...e.de>
Cc: Manfred Schlaegl <manfred.schlaegl@...zinger.com>
Cc: Mikulas Patocka <mpatocka@...hat.com>
Cc: Kees Cook <keescook@...omium.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
Powered by blists - more mailing lists