Re: [PATCH] net: usb: Make init_satus() return -ENOMEM if alloc failed
From: Simon Horman
Date: Wed Jul 16 2025 - 05:18:52 EST
On Wed, Jul 16, 2025 at 08:15:23AM +0800, Zqiang wrote:
> This commit make init_status() return -ENOMEM, if invoke
> kmalloc() return failed.
>
> Signed-off-by: Zqiang <qiang.zhang@xxxxxxxxx>
Hi,
It seems to me that the code has been structured so that
this case is not treated as an error, and rather initialisation
that depends on it is skipped.
Are you sure this change is correct?