diff options
author | Fedor Pchelkin <pchelkin@ispras.ru> | 2025-01-14 18:21:38 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2025-02-08 13:28:57 +0300 |
commit | 9bd24927e3eeb85642c7baa3b28be8bea6c2a078 (patch) | |
tree | 50453bf95baa7494eafe4238718b0f2ca16c9f6a /lib/mpi/mpi-inline.c | |
parent | 44de577e61ed239db09f0da9d436866bef9b77dd (diff) | |
download | linux-9bd24927e3eeb85642c7baa3b28be8bea6c2a078.tar.xz |
can: ctucanfd: handle skb allocation failure
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@vger.kernel.org
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Acked-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://patch.msgid.link/20250114152138.139580-1-pchelkin@ispras.ru
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions