[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+Px+wXWS4hteE-o_uLi8DxgLK3TKkWzGmHGEE02ALzA1GRDoA@mail.gmail.com>
Date: Thu, 14 Oct 2021 18:47:01 +0800
From: Tzung-Bi Shih <tzungbi@...gle.com>
To: Fei Shao <fshao@...omium.org>
Cc: Jassi Brar <jaswinder.singh@...aro.org>,
Chun-Kuang Hu <chunkuang.hu@...nel.org>,
Jassi Brar <jassisinghbrar@...il.com>,
Matthias Brugger <matthias.bgg@...il.com>,
"jason-jh.lin" <jason-jh.lin@...iatek.com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-mediatek@...ts.infradead.org
Subject: Re: [PATCH 1/2] mailbox: mtk-cmdq: Validate alias_id on probe
On Thu, Oct 14, 2021 at 05:31:10PM +0800, Fei Shao wrote:
> of_alias_get_id() may return -ENODEV which leads to illegal access to
> the cmdq->clocks array.
> Adding a check over alias_id to prevent the unexpected behavior.
>
> Fixes: 85dfdbfc13ea ("mailbox: cmdq: add multi-gce clocks support for
> mt8195")
> Signed-off-by: Fei Shao <fshao@...omium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@...gle.com>
Powered by blists - more mailing lists