Re: [PATCH net] net: ti: icssg-prueth: Fix signedness bug in prueth_init_rx_chns()

From: MD Danish Anwar
Date: Wed Apr 24 2024 - 04:28:38 EST




On 23/04/24 9:45 pm, Dan Carpenter wrote:
> The rx_chn->irq[] array is unsigned int but it should be signed for the
> error handling to work. Also if k3_udma_glue_rx_get_irq() returns zero
> then we should return -ENXIO instead of success.
>
> Fixes: 128d5874c082 ("net: ti: icssg-prueth: Add ICSSG ethernet driver")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Reviewed-by: MD Danish Anwar <danishanwar@xxxxxx>

--
Thanks and Regards,
Danish