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


Groups > linux.kernel > #1322216

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

From Stephen Boyd <sboyd@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] clk: palmas: fix a possible NULL dereference
Date 2016-01-30 02:00 +0100
Message-ID <qWs3o-2Yl-11@gated-at.bofh.it> (permalink)
References <qyHPX-6p2-11@gated-at.bofh.it> <qyHPX-6p2-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web