Re: [PATCH v2] usb: gadget: f_ncm: replace kzalloc with kzalloc_obj
From: Greg KH
Date: Wed Mar 18 2026 - 10:16:44 EST
On Mon, Mar 16, 2026 at 10:25:05AM +0100, Loke Forsberg wrote:
> Replace kzalloc(sizeof(*ptr)) with kzalloc_obj(), to improve type safety.
>
> Signed-off-by: Loke Forsberg <Loke.Forsberg@xxxxxxxxx>
> ---
> Changes in v2:
> - Remove GFP_KERNEL flag as kzalloc_obj() defaults to it
Any reason you did not even test build this?
Please be more careful in the future.
greg k-h