Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1322216 > unrolled thread

Re: [PATCH 2/2] clk: palmas: fix a possible NULL dereference

Started byStephen Boyd <sboyd@codeaurora.org>
First post2016-01-30 02:00 +0100
Last post2016-01-30 02:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 2/2] clk: palmas: fix a possible NULL dereference Stephen Boyd <sboyd@codeaurora.org> - 2016-01-30 02:00 +0100

#1322216 — Re: [PATCH 2/2] clk: palmas: fix a possible NULL dereference

FromStephen Boyd <sboyd@codeaurora.org>
Date2016-01-30 02:00 +0100
SubjectRe: [PATCH 2/2] clk: palmas: fix a possible NULL dereference
Message-ID<qWs3o-2Yl-11@gated-at.bofh.it>
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@gmail.com>
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web