| To: | "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH]: Fix NULL-ptr dereference in irlmp_get_saddr() |
| From: | Patrick McHardy <kaber@xxxxxxxxx> |
| Date: | Fri, 28 May 2004 12:56:50 +0200 |
| Cc: | netdev@xxxxxxxxxxx, jt@xxxxxxxxxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 |
This patch fixes a NULL-ptr dereference in irlmp_get_saddr. Regards Patrick # This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/05/28 12:32:37+02:00 kaber@xxxxxxxxx
# [IRDA]: Fix NULL-ptr dereference in irlmp_get_saddr()
#
# include/net/irda/irlmp.h
# 2004/05/28 12:32:30+02:00 kaber@xxxxxxxxx +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)
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH]: Fix off-by-one in max protocol-type check, Patrick McHardy |
|---|---|
| Next by Date: | RE: Fw: [Bugme-new] [Bug 2782] New: ksoftirqd load system, kernelha ng after a few minuts, David TILLOY |
| Previous by Thread: | [PATCH]: Fix skb leak in igmpv3_newpack, Patrick McHardy |
| Next by Thread: | Re: [PATCH]: Fix NULL-ptr dereference in irlmp_get_saddr(), Jean Tourrilhes |
| Indexes: | [Date] [Thread] [Top] [All Lists] |