[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <161116756167.3661239.9611045261884718600@swboyd.mtv.corp.google.com>
Date: Wed, 20 Jan 2021 10:32:41 -0800
From: Stephen Boyd <swboyd@...omium.org>
To: Andy Gross <agross@...nel.org>,
Dan Carpenter <dan.carpenter@...cle.com>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
Cc: Bjorn Andersson <bjorn.andersson@...aro.org>,
Sai Prakash Ranjan <saiprakash.ranjan@...eaurora.org>,
Douglas Anderson <dianders@...omium.org>,
linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] soc: qcom: socinfo: Fix an off by one in qcom_show_pmic_model()
Quoting Dan Carpenter (2021-01-20 01:57:55)
> These need to be < ARRAY_SIZE() instead of <= ARRAY_SIZE() to prevent
> accessing one element beyond the end of the array.
>
> Fixes: e9247e2ce577 ("soc: qcom: socinfo: fix printing of pmic_model")
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
> ---
Reviewed-by: Stephen Boyd <swboyd@...omium.org>
Powered by blists - more mailing lists