Messages in this thread |  | | Date | Wed, 15 Jan 2025 09:40:00 +0900 | | Subject | Re: [PATCH] can: ctucanfd: handle skb allocation failure | | From | Vincent Mailhol <> |
| |
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@vger.kernel.org > Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Yours sincerely, Vincent Mailhol
|  |