[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200804.161108.958554880119569573.davem@davemloft.net>
Date: Tue, 04 Aug 2020 16:11:08 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: yuehaibing@...wei.com
Cc: ioana.ciornei@....com, ruxandra.radulescu@....com, kuba@...nel.org,
andrew@...n.ch, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] dpaa2-eth: Fix passing zero to 'PTR_ERR' warning
From: YueHaibing <yuehaibing@...wei.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@...wei.com>
Applied and queued up for -stable, thank you.
Powered by blists - more mailing lists