Messages in this thread | | | Date | Tue, 04 Aug 2020 16:11:08 -0700 (PDT) | Subject | Re: [PATCH] dpaa2-eth: Fix passing zero to 'PTR_ERR' warning | From | David Miller <> |
| |
From: YueHaibing <yuehaibing@huawei.com> 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@huawei.com>
Applied and queued up for -stable, thank you.
| |