[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170524080951.GO1594@localhost.localdomain>
Date: Wed, 24 May 2017 09:09:51 +0100
From: Charles Keepax <ckeepax@...nsource.wolfsonmicro.com>
To: Lee Jones <lee.jones@...aro.org>
CC: "Gustavo A. R. Silva" <garsilva@...eddedor.com>,
<patches@...nsource.wolfsonmicro.com>,
<linux-kernel@...r.kernel.org>
Subject: Re: [mfd] question about potential null pointer dereference
On Wed, May 24, 2017 at 08:22:58AM +0100, Lee Jones wrote:
> On Tue, 23 May 2017, Gustavo A. R. Silva wrote:
> > The issue here is that there is a potential NULL pointer dereference at line
> > 37, in case function of_match_device() returns NULL.
> >
> > Maybe a patch like the following could be applied in order to avoid any
> > chance of a NULL pointer dereference:
>
> I do not believe it's possible for of_match_device() to return NULL in
> this case.
>
> However, if you wanted to submit a patch checking for it, it would not
> be rejected.
Personally I would prefer to have a NULL pointer check in there.
Thanks,
Charles
Powered by blists - more mailing lists