Re: [PATCH 1/1] thermal/drivers/hisi: Drop second sensor hi3660

From: Daniel Lezcano
Date: Fri Feb 10 2023 - 09:28:57 EST


On 10/02/2023 15:15, Yongqin Liu wrote:
The commit 74c8e6bffbe1 ("driver core: Add __alloc_size hint to devm
allocators") exposes a panic "BRK handler: Fatal exception" on the
hi3660_thermal_probe funciton.
This is because the function allocates memory for only one
sensors array entry, but tries to fill up a second one.

Fix this by removing the unneeded second access.

Fixes: 7d3a2a2bbadb ("thermal/drivers/hisi: Fix number of sensors on hi3660")
Signed-off-by: Yongqin Liu <yongqin.liu@xxxxxxxxxx>
Link: https://lore.kernel.org/linux-mm/20221101223321.1326815-5-keescook@xxxxxxxxxxxx/
---

Applied, thanks


--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog