mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
can/pkt: free pkt on bus off error
This commit is contained in:
parent
d3fac6f5ac
commit
6bbb908d59
@ -423,6 +423,7 @@ int can_dll_dispatch_bus_off(kernel_pid_t pid)
|
||||
while (entry) {
|
||||
can_pkt_t *pkt = container_of(entry, can_pkt_t, entry);
|
||||
can_router_dispatch_tx_error(pkt);
|
||||
can_pkt_free(pkt);
|
||||
LL_DELETE(tx_list[ifnum], entry);
|
||||
entry = tx_list[ifnum];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user