drivers: can: can_net: Fix build issue after #38501
Fixing build issue introduced by PR #38501 Signed-off-by: Alexander Wachter <alexander@wachter.cloud>
This commit is contained in:
parent
45c24454a0
commit
3f500df975
1 changed files with 3 additions and 3 deletions
|
@ -188,16 +188,16 @@ static void mcast_cb(struct net_if *iface, const struct net_addr *addr,
|
||||||
NET_ERR("Can't get a free filter_mapping");
|
NET_ERR("Can't get a free filter_mapping");
|
||||||
}
|
}
|
||||||
|
|
||||||
filter_id = attach_mcast_filter(ctx, addr->in6_addr);
|
filter_id = attach_mcast_filter(ctx, &addr->in6_addr);
|
||||||
if (filter_id < 0) {
|
if (filter_id < 0) {
|
||||||
NET_ERR("Can't attach mcast filter");
|
NET_ERR("Can't attach mcast filter");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
filter_mapping->addr = addr->in6_addr;
|
filter_mapping->addr = &addr->in6_addr;
|
||||||
filter_mapping->filter_id = filter_id;
|
filter_mapping->filter_id = filter_id;
|
||||||
} else {
|
} else {
|
||||||
filter_mapping = can_get_mcast_filter(ctx, addr->in6_addr);
|
filter_mapping = can_get_mcast_filter(ctx, &addr->in6_addr);
|
||||||
if (!filter_mapping) {
|
if (!filter_mapping) {
|
||||||
NET_ERR("No filter mapping found");
|
NET_ERR("No filter mapping found");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue