Commit 7076404f authored by Daniel Vetter's avatar Daniel Vetter

fbdev: locking check for fb_set_suspend

Just drive-by, nothing systematic yet.
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
Cc: Peter Rosin <peda@axentia.se>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Manfred Schlaegl <manfred.schlaegl@ginzinger.com>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528090304.9388-3-daniel.vetter@ffwll.ch
parent 214b0dd5
...@@ -1985,6 +1985,8 @@ void fb_set_suspend(struct fb_info *info, int state) ...@@ -1985,6 +1985,8 @@ void fb_set_suspend(struct fb_info *info, int state)
{ {
struct fb_event event; struct fb_event event;
WARN_CONSOLE_UNLOCKED();
event.info = info; event.info = info;
if (state) { if (state) {
fb_notifier_call_chain(FB_EVENT_SUSPEND, &event); fb_notifier_call_chain(FB_EVENT_SUSPEND, &event);
......
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