mirror of
https://github.com/torvalds/linux.git
synced 2025-11-03 18:20:25 +02:00
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>
|
||
|---|---|---|
| .. | ||
| gpc.c | ||
| gpcv2.c | ||
| imx8m-blk-ctrl.c | ||
| Kconfig | ||
| Makefile | ||
| soc-imx.c | ||
| soc-imx8m.c | ||