[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201114123613.2e52fb49@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Sat, 14 Nov 2020 12:36:13 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: YueHaibing <yuehaibing@...wei.com>
Cc: <nicolas.ferre@...rochip.com>, <claudiu.beznea@...rochip.com>,
<davem@...emloft.net>, <harini.katakam@...inx.com>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] net: macb: Fix passing zero to 'PTR_ERR'
On Thu, 12 Nov 2020 22:49:36 +0800 YueHaibing wrote:
> Check PTR_ERR with IS_ERR to fix this.
>
> Fixes: cd5afa91f078 ("net: macb: Add null check for PCLK and HCLK")
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Looks like a cleanup PTR_ERR() should return 0 for NULL AFAICS.
Applied to net-next, thanks!
Powered by blists - more mailing lists