[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160130005759.GB4848@codeaurora.org>
Date: Fri, 29 Jan 2016 16:58:00 -0800
From: Stephen Boyd <sboyd@...eaurora.org>
To: LABBE Corentin <clabbe.montjoie@...il.com>
Cc: mturquette@...libre.com, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] clk: palmas: fix a possible NULL dereference
On 11/25, LABBE Corentin wrote:
> of_match_device could return NULL, and so cause a NULL pointer
> dereference later.
> Even if the probability of this case is very low, fixing it made
> static analyzers happy.
>
> Solving this with of_device_get_match_data made also code simplier.
>
> Reported-by: coverity (CID 1324137)
> Signed-off-by: LABBE Corentin <clabbe.montjoie@...il.com>
> ---
Applied to clk-next
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists