Re: [net-next] can: etas_es58x: fix null pointer dereference when handling error frames

2021-04-14 Thread patchwork-bot+netdevbpf
fails, > the function continues in order to do the stats handling. > > All access to the can_frame pointer (cf) should be guarded by an if > statement: > if (cf) > > [...] Here is the summary with links: - [net-next] can: etas_es58x: fix null pointer dereference when

[net-next] can: etas_es58x: fix null pointer dereference when handling error frames

2021-04-14 Thread Marc Kleine-Budde
From: Vincent Mailhol During the handling of CAN bus errors, a CAN error SKB is allocated using alloc_can_err_skb(). Even if the allocation of the SKB fails, the function continues in order to do the stats handling. All access to the can_frame pointer (cf) should be guarded by an if statement: