[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170206224825.GG25384@codeaurora.org>
Date: Mon, 6 Feb 2017 14:48:25 -0800
From: Stephen Boyd <sboyd@...eaurora.org>
To: Maxime Ripard <maxime.ripard@...e-electrons.com>
Cc: Michael Turquette <mturquette@...libre.com>,
linux-kernel@...r.kernel.org, linux-clk@...r.kernel.org,
Chen-Yu Tsai <wens@...e.org>
Subject: Re: [PATCH] clk: sunxi-ng: Check kzalloc() for errors and cleanup
error path
On 02/06, Maxime Ripard wrote:
> On Fri, Feb 03, 2017 at 03:00:50PM -0800, Stephen Boyd wrote:
> > This kzalloc() could fail. Let's bail out with -ENOMEM here
> > instead of NULL dereferencing. That silences static checkers. We
> > should also cleanup on the error path even though this function
> > returning an error probably means the system won't boot.
> >
> > Cc: Chen-Yu Tsai <wens@...e.org>
> > Cc: Maxime Ripard <maxime.ripard@...e-electrons.com>
> > Signed-off-by: Stephen Boyd <sboyd@...eaurora.org>
>
> Acked-by: Maxime Ripard <maxime.ripard@...e-electrons.com>
>
> Can you apply it directly?
>
Yep. Thanks.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists