diff options
author | Fei Shao <fshao@chromium.org> | 2021-10-14 15:03:51 +0300 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2021-10-19 20:28:09 +0300 |
commit | 5c154b6a51c2d2d7f266b3ef49b7dd1dc8cb5b65 (patch) | |
tree | eda1b2de30039a055c2e69f663d4a62fb865e5bb /mm/swap_slots.c | |
parent | ce1537fe288469bf68ee0aabdb860a790b4755ef (diff) | |
download | linux-5c154b6a51c2d2d7f266b3ef49b7dd1dc8cb5b65.tar.xz |
mailbox: mtk-cmdq: Validate alias_id on probe
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@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'mm/swap_slots.c')
0 files changed, 0 insertions, 0 deletions