Skip to content

Commit

Permalink
fbdev: locking check for fb_set_suspend
Browse files Browse the repository at this point in the history
Just drive-by, nothing systematic yet.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Maarten 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
  • Loading branch information
danvet committed Jun 12, 2019
1 parent 214b0dd commit 7076404
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/fbdev/core/fbmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7076404

Please sign in to comment.