Commit 49d989d4 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[IRDA]: Fix NULL-ptr dereference in irlmp_get_saddr().

parent 91f0d735
......@@ -251,7 +251,7 @@ LM_REASON irlmp_convert_lap_reason(LAP_REASON);
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment