All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/video/fbdev/core/fbmem.c: add pointer judgment
@ 2021-05-19 12:00 ` songqiang
  0 siblings, 0 replies; 6+ messages in thread
From: songqiang @ 2021-05-19 12:00 UTC (permalink / raw)
  To: sam, b.zolnierkie, penguin-kernel, george.kennedy, arnd,
	tzimmermann, jgg, willy
  Cc: dri-devel, linux-fbdev, linux-kernel, songqiang

Signed-off-by: songqiang <songqiang@uniontech.com>
---
 drivers/video/fbdev/core/fbmem.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/fbmem.c
index 072780b0e570..6036ab849475 100644
--- a/drivers/video/fbdev/core/fbmem.c
+++ b/drivers/video/fbdev/core/fbmem.c
@@ -1859,6 +1859,9 @@ void fb_set_suspend(struct fb_info *info, int state)
 {
 	WARN_CONSOLE_UNLOCKED();
 
+	if (!info) {
+		return;
+	}
 	if (state) {
 		fbcon_suspended(info);
 		info->state = FBINFO_STATE_SUSPENDED;
-- 
2.20.1




^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-20  7:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-19 12:00 [PATCH] drivers/video/fbdev/core/fbmem.c: add pointer judgment songqiang
2021-05-19 12:00 ` songqiang
2021-05-19 12:16 ` Matthew Wilcox
2021-05-19 12:16   ` Matthew Wilcox
     [not found]   ` <1049640176.41531.1621490295842.JavaMail.xmail@localhost.localdomain>
2021-05-20  7:48     ` Arnd Bergmann
2021-05-20  7:48       ` Arnd Bergmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.