From: Patrick McHardy <kaber@trash.net>
To: "David S. Miller" <davem@redhat.com>
Cc: netdev@oss.sgi.com, jt@bougret.hpl.hp.com
Subject: [PATCH]: Fix NULL-ptr dereference in irlmp_get_saddr()
Date: Fri, 28 May 2004 12:56:50 +0200 [thread overview]
Message-ID: <40B71AF2.2020503@trash.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 77 bytes --]
This patch fixes a NULL-ptr dereference in irlmp_get_saddr.
Regards
Patrick
[-- Attachment #2: irlmp_get_saddr-NULL-ptr.diff --]
[-- Type: text/x-patch, Size: 764 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/05/28 12:32:37+02:00 kaber@trash.net
# [IRDA]: Fix NULL-ptr dereference in irlmp_get_saddr()
#
# include/net/irda/irlmp.h
# 2004/05/28 12:32:30+02:00 kaber@trash.net +1 -1
# [IRDA]: Fix NULL-ptr dereference in irlmp_get_saddr()
#
diff -Nru a/include/net/irda/irlmp.h b/include/net/irda/irlmp.h
--- a/include/net/irda/irlmp.h 2004-05-28 12:35:56 +02:00
+++ b/include/net/irda/irlmp.h 2004-05-28 12:35:56 +02:00
@@ -251,7 +251,7 @@
static inline __u32 irlmp_get_saddr(const struct lsap_cb *self)
{
- return (self && !self->lap) ? self->lap->saddr : 0;
+ return (self && self->lap) ? self->lap->saddr : 0;
}
static inline __u32 irlmp_get_daddr(const struct lsap_cb *self)
next reply other threads:[~2004-05-28 10:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-28 10:56 Patrick McHardy [this message]
2004-05-28 16:41 ` [PATCH]: Fix NULL-ptr dereference in irlmp_get_saddr() Jean Tourrilhes
2004-05-29 19:40 ` David S. Miller
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=40B71AF2.2020503@trash.net \
--to=kaber@trash.net \
--cc=davem@redhat.com \
--cc=jt@bougret.hpl.hp.com \
--cc=netdev@oss.sgi.com \
/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).