From: songqiang <songqiang@uniontech.com>
To: sam@ravnborg.org, b.zolnierkie@samsung.com,
penguin-kernel@i-love.sakura.ne.jp, george.kennedy@oracle.com,
arnd@arndb.de, tzimmermann@suse.de, jgg@ziepe.ca,
willy@infradead.org
Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org,
linux-kernel@vger.kernel.org, songqiang <songqiang@uniontech.com>
Subject: [PATCH] drivers/video/fbdev/core/fbmem.c: add pointer judgment
Date: Wed, 19 May 2021 20:00:28 +0800 [thread overview]
Message-ID: <20210519120028.7350-1-songqiang@uniontech.com> (raw)
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
next reply other threads:[~2021-05-19 12:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-19 12:00 songqiang [this message]
2021-05-19 12:16 ` [PATCH] drivers/video/fbdev/core/fbmem.c: add pointer judgment Matthew Wilcox
[not found] ` <1049640176.41531.1621490295842.JavaMail.xmail@localhost.localdomain>
2021-05-20 7:48 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210519120028.7350-1-songqiang@uniontech.com \
--to=songqiang@uniontech.com \
--cc=arnd@arndb.de \
--cc=b.zolnierkie@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=george.kennedy@oracle.com \
--cc=jgg@ziepe.ca \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penguin-kernel@i-love.sakura.ne.jp \
--cc=sam@ravnborg.org \
--cc=tzimmermann@suse.de \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).