From: ye janboe <janboe.ye@gmail.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: rjw@sisk.pl, bunk@kernel.org, bugme-janitors@lists.osdl.org
Subject: fix rtc_cmos bug
Date: Sun, 17 May 2009 23:04:27 +0800 [thread overview]
Message-ID: <af3ea28a0905170804n500126e4tc425dafd9fcaa68a@mail.gmail.com> (raw)
fix Bug 13326 - Null pointer dereference in rtc-cmos driver
http://bugzilla.kernel.org/show_bug.cgi?id=13326
Signed-off-by: janboe <janboe.ye@gmail.com>
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c
index 23e10b6..da132f6 100644
--- a/drivers/rtc/rtc-cmos.c
+++ b/drivers/rtc/rtc-cmos.c
@@ -1179,7 +1179,9 @@ static int __init cmos_init(void)
int retval = 0;
#ifdef CONFIG_PNP
- pnp_register_driver(&cmos_pnp_driver);
+ retval = pnp_register_driver(&cmos_pnp_driver);
+ if (retval)
+ return retval;
#endif
if (!cmos_rtc.dev)
next reply other threads:[~2009-05-17 15:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-17 15:04 ye janboe [this message]
2009-05-20 5:17 ` ye janboe
2009-05-20 6:16 ` Ozan Çağlayan
2009-05-20 13:03 ` ye janboe
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=af3ea28a0905170804n500126e4tc425dafd9fcaa68a@mail.gmail.com \
--to=janboe.ye@gmail.com \
--cc=bugme-janitors@lists.osdl.org \
--cc=bunk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@sisk.pl \
/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
all inboxes | Powered by JetHome®