[lvc-project] [PATCH] can: ctucanfd: handle skb allocation failure
Vincent Mailhol
mailhol.vincent at wanadoo.fr
Wed Jan 15 03:40:00 MSK 2025
On 15/01/2025 at 00:21, Fedor Pchelkin wrote:
> If skb allocation fails, the pointer to struct can_frame is NULL. This
> is actually handled everywhere inside ctucan_err_interrupt() except for
> the only place.
>
> Add the missed NULL check.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE static
> analysis tool.
>
> Fixes: 2dcb8e8782d8 ("can: ctucanfd: add support for CTU CAN FD open-source IP core - bus independent part.")
> Cc: stable at vger.kernel.org
> Signed-off-by: Fedor Pchelkin <pchelkin at ispras.ru>
Reviewed-by: Vincent Mailhol <mailhol.vincent at wanadoo.fr>
Yours sincerely,
Vincent Mailhol
More information about the lvc-project
mailing list