Re: [PATCH] dpaa2-eth: Fix passing zero to 'PTR_ERR' warning

From: David Miller
Date: Tue Aug 04 2020 - 19:11:12 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Tue, 4 Aug 2020 21:26:43 +0800

> Fix smatch warning:
>
> drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c:2419
> alloc_channel() warn: passing zero to 'ERR_PTR'
>
> setup_dpcon() should return ERR_PTR(err) instead of zero in error
> handling case.
>
> Fixes: d7f5a9d89a55 ("dpaa2-eth: defer probe on object allocate")
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied and queued up for -stable, thank you.