diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-11-28 09:39:35 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-05-02 09:02:17 +0200 |
commit | bec51d29fc79325c75af716d66e643c9b81cbc2e (patch) | |
tree | d9360c16ca5e4af5082a424590eb0664e9d2c21a | |
parent | c975ea3cb9c6794b5db4eaf9f7968d52484f7874 (diff) |
fbdev: locking check for fb_set_suspend
Just drive-by, nothing systematic yet.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
-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 4721491e6c8c..fc3d34a8ea5b 100644 --- a/drivers/video/fbdev/core/fbmem.c +++ b/drivers/video/fbdev/core/fbmem.c @@ -1964,6 +1964,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); |