From: David Kleikamp <shaggy@austin.ibm.com>
To: rmk@flint.arm.linux.org.uk
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 2.5.41] trap in __release_resource
Date: Wed, 9 Oct 2002 12:19:11 -0500 [thread overview]
Message-ID: <200210091719.g99HJBVM001363@kleikamp.austin.ibm.com> (raw)
Russell,
I was getting a NULL pointer dereference in __release_resource when I tried
to boot 2.5.41. I traced it down to your recent patch to 8250.c. Since
the call to serial8250_request_std_resource() is now conditional, the call
to release_resource() needs to be conditional as well. This patch fixes
the problem. It looks obviously correct to me, but I don't know this code
at all.
Thanks,
Shaggy
diff -Nur linux-2.5.41/drivers/serial/8250.c linux/drivers/serial/8250.c
--- linux-2.5.41/drivers/serial/8250.c Wed Oct 9 11:16:52 2002
+++ linux/drivers/serial/8250.c Wed Oct 9 11:17:19 2002
@@ -1636,7 +1636,7 @@
if (up->port.type != PORT_RSA && res_rsa)
release_resource(res_rsa);
- if (up->port.type == PORT_UNKNOWN)
+ if (up->port.type == PORT_UNKNOWN && res_std)
release_resource(res_std);
}
next reply other threads:[~2002-10-09 17:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-09 17:19 David Kleikamp [this message]
2002-10-09 17:54 ` Russell King
2002-10-09 17:56 ` Dave Kleikamp
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=200210091719.g99HJBVM001363@kleikamp.austin.ibm.com \
--to=shaggy@austin.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@flint.arm.linux.org.uk \
/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®