[PATCH v5 3/3] can: gs_usb: check can_rx_offload_add_manual() return value

Marc Kleine-Budde mkl at pengutronix.de
Tue Oct 27 02:35:05 PDT 2026


On 07.09.2026 12:49:42, Ciprian Costea wrote:
> From: Ciprian Marian Costea <ciprianmarian.costea at oss.nxp.com>
>
> gs_make_candev() ignores the return value of can_rx_offload_add_manual().
> Once can_rx_offload's skb_irq_queue is made per-CPU, that call allocates a
> per-CPU queue and can fail with -ENOMEM, leaving offload->skb_irq_queue ==
> NULL.
>
> Check the return value and exit via the existing free_candev() on error
> path.
>
> Fixes: 24bc41b45583 ("can: gs_usb: convert to NAPI/rx-offload to avoid OoO reception")
> Signed-off-by: Ciprian Marian Costea <ciprianmarian.costea at oss.nxp.com>

Added this patch to gs_usb fixes series.

Thanks,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde          |
Embedded Linux                   | https://www.pengutronix.de |
Vertretung Nürnberg              | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-9   |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20261027/b931a8e3/attachment.sig>


More information about the linux-arm-kernel mailing list