[PATCH net-next v6 12/15] net: airoha: Introduce Airoha NPU support

Lorenzo Bianconi lorenzo at kernel.org
Fri Feb 21 14:56:19 PST 2025


> On Fri, 21 Feb 2025 11:28:13 +0100 Lorenzo Bianconi wrote:
> > +	addr = kzalloc(size, GFP_ATOMIC);
> > +	if (!addr)
> > +		return -ENOMEM;
> > +
> > +	memcpy(addr, p, size);
> 
> coccicheck says:
> 
> drivers/net/ethernet/airoha/airoha_npu.c:128:8-15: WARNING opportunity for kmemdup

ack, I will fix it in v7.

Regards,
Lorenzo

> -- 
> pw-bot: cr
-------------- 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/20250221/3697b0c8/attachment.sig>


More information about the linux-arm-kernel mailing list