diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-10-11 15:36:38 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2021-10-15 06:10:05 +0300 |
commit | 72949f76565c9ea9f4231c977774a31d4713c386 (patch) | |
tree | aa72019cee40c742722728fc88bb86b62c13879c /drivers/soc/lantiq | |
parent | 926e57c065dfcf5a824b206760330f32e786dd8c (diff) | |
download | linux-72949f76565c9ea9f4231c977774a31d4713c386.tar.xz |
soc: imx: imx8m-blk-ctrl: off by one in imx8m_blk_ctrl_xlate()
The > comparison should be >= to prevent reading one element beyond the
end of the array. The onecell_data->domains[] array is allocated in
imx8m_blk_ctrl_probe() and it has "onecell_data->num_domains" elements.
Fixes: 5b340e7813d4 ("soc: imx: add i.MX8M blk-ctrl driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/soc/lantiq')
0 files changed, 0 insertions, 0 deletions