[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <160717677394.8204.5219052683887032938.b4-ty@kernel.org>
Date: Sat, 5 Dec 2020 15:00:37 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Alex Smith <alex.smith@...tec.com>,
Paul Cercueil <paul@...pouillou.net>,
Zhang Changzhong <zhangchangzhong@...wei.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Zubair Lutfullah Kakakhel <Zubair.Kakakhel@...tec.com>
Cc: Krzysztof Kozlowski <krzk@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] memory: jz4780_nemc: Fix potential NULL dereference in jz4780_nemc_probe()
On Fri, 4 Dec 2020 16:31:57 +0800, Zhang Changzhong wrote:
> platform_get_resource() may fail and return NULL, so we should
> better check it's return value to avoid a NULL pointer dereference
> a bit later in the code.
>
> This is detected by Coccinelle semantic patch.
>
> @@
> expression pdev, res, n, t, e, e1, e2;
> @@
>
> [...]
Applied, thanks!
[1/1] memory: jz4780_nemc: Fix potential NULL dereference in jz4780_nemc_probe()
commit: 4bfa07300b9334b487ed4f3d4901c35ebb31b7ca
Best regards,
--
Krzysztof Kozlowski <krzk@...nel.org>
Powered by blists - more mailing lists