From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Linux Torvalds <torvalds@osdl.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/1] Char: isicom, fix close bug
Date: Wed, 15 Nov 2006 00:30:17 +0100 (CET) [thread overview]
Message-ID: <5784263591328927442@karneval.cz> (raw)
Is there any chance to have this in 2.6.19?
--
isicom, fix close bug
port is dereferenced even if it is NULL. Dereference it _after_ the check
if (!port)... Thanks Eric <ef87@yahoo.com> for reporting this.
[http://bugzilla.kernel.org/show_bug.cgi?id=7527]
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
commit 3b03fd9a68de624866b52b9e9a93d551839c0128
tree 77fff66a8b34516b014e9adbe55a9f1027de14c4
parent 0579e303553655245e8a6616bd8b4428b07d63a2
author Jiri Slaby <jirislaby@gmail.com> Wed, 15 Nov 2006 00:25:30 +0100
committer Jiri Slaby <jirislaby@gmail.com> Wed, 15 Nov 2006 00:25:30 +0100
drivers/char/isicom.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/char/isicom.c b/drivers/char/isicom.c
index e9e9bf3..58c955e 100644
--- a/drivers/char/isicom.c
+++ b/drivers/char/isicom.c
@@ -1062,11 +1062,12 @@ static void isicom_shutdown_port(struct
static void isicom_close(struct tty_struct *tty, struct file *filp)
{
struct isi_port *port = tty->driver_data;
- struct isi_board *card = port->card;
+ struct isi_board *card;
unsigned long flags;
if (!port)
return;
+ card = port->card;
if (isicom_paranoia_check(port, tty->name, "isicom_close"))
return;
reply other threads:[~2006-11-14 23:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=5784263591328927442@karneval.cz \
--to=jirislaby@gmail.com \
--cc=akpm@osdl.org \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®