Re: [PATCH v1 1/1] net/9p/usbg: fix handling of the failed kzalloc() memory allocation

From: Dominique Martinet
Date: Sat Nov 16 2024 - 03:26:16 EST


Mirsad Todorovac wrote on Sat, Nov 09, 2024 at 10:18:41PM +0100:
> On the linux-next, next-20241108 vanilla kernel, the coccinelle tool gave the
> following error report:
>
> ./net/9p/trans_usbg.c:912:5-11: ERROR: allocation function on line 911 returns
> NULL not ERR_PTR on failure
>
> kzalloc() failure is fixed to handle the NULL return case on the memory exhaustion.

Thank you, I've taken this in 9p-next and will submit it to Linus next
cycle

--
Dominique