[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170130075937.jumi5dyxgarbjxxt@piout.net>
Date: Mon, 30 Jan 2017 08:59:37 +0100
From: Alexandre Belloni <alexandre.belloni@...e-electrons.com>
To: Shailendra Verma <shailendra.v@...sung.com>
Cc: Paul Gortmaker <paul.gortmaker@...driver.com>,
Nicolas Ferre <nicolas.ferre@...el.com>,
LABBE Corentin <clabbe.montjoie@...il.com>,
linux-kernel@...r.kernel.org, p.shailesh@...sung.com,
ashish.kalra@...sung.com,
Shailendra Verma <shailendra.capricorn@...il.com>
Subject: Re: [PATCH] Memory - Fix possible NULL derefrence.
On 30/01/2017 at 10:30:05 +0530, Shailendra Verma wrote:
> of_device_get_match_data could return NULL, and so can cause
> a NULL pointer dereference later.
>
No, it will never return NULL because it will always match.
At some point, I would really like people to stop blindly sending
patches generated by coccinelle.
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Powered by blists - more mailing lists