diff options
author | Daniel Vetter <[email protected]> | 2019-05-28 11:02:33 +0200 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2019-06-12 20:27:01 +0200 |
commit | 7076404f7c8d3fc01e8cb8ea259c7552b2061ae0 (patch) | |
tree | 879b9ad9cc6d7205bd90f8a36a1224e93279608b | |
parent | 214b0dd591abfde8cbc5536cd0a6b996a659c23e (diff) |
fbdev: locking check for fb_set_suspend
Just drive-by, nothing systematic yet.
Signed-off-by: Daniel Vetter <[email protected]>
Reviewed-by: Sam Ravnborg <[email protected]>
Reviewed-by: Maarten Lankhorst <[email protected]>
Cc: Bartlomiej Zolnierkiewicz <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: "Michał Mirosław" <[email protected]>
Cc: Peter Rosin <[email protected]>
Cc: Hans de Goede <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: Manfred Schlaegl <[email protected]>
Cc: Mikulas Patocka <[email protected]>
Cc: Kees Cook <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r-- | drivers/video/fbdev/core/fbmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |