Skip to content

Commit 15cc258

Browse files
liuyqrafaeljw
authored andcommitted
thermal/drivers/hisi: Drop second sensor hi3660
The commit 74c8e6b ("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: 7d3a2a2 ("thermal/drivers/hisi: Fix number of sensors on hi3660") Signed-off-by: Yongqin Liu <[email protected]> Link: https://lore.kernel.org/linux-mm/[email protected]/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 47b2d3d commit 15cc258

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/thermal/hisi_thermal.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,6 @@ static int hi3660_thermal_probe(struct hisi_thermal_data *data)
427427
data->sensor[0].irq_name = "tsensor_a73";
428428
data->sensor[0].data = data;
429429

430-
data->sensor[1].id = HI3660_LITTLE_SENSOR;
431-
data->sensor[1].irq_name = "tsensor_a53";
432-
data->sensor[1].data = data;
433-
434430
return 0;
435431
}
436432

0 commit comments

Comments
 (0)