kernel_optimize_test/drivers/thermal
Jiasheng Jiang 71dba67138 thermal: int340x: Check for NULL after calling kmemdup()
[ Upstream commit 38b16d6cfe54c820848bcfc999bc5e8a7da1cefb ]

As the potential failure of the allocation, kmemdup() may return NULL.

Then, 'bin_attr_data_vault.private' will be NULL, but
'bin_attr_data_vault.size' is not 0, which is not consistent.

Therefore, it is better to check the return value of kmemdup() to
avoid the confusion.

Fixes: 0ba13c763a ("thermal/int340x_thermal: Export GDDV")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:39:59 +02:00
..
broadcom
intel thermal: int340x: Check for NULL after calling kmemdup() 2022-04-08 14:39:59 +02:00
qcom thermal/drivers/tsens: Fix wrong check for tzd in irq handlers 2021-10-09 14:40:57 +02:00
samsung thermal/drivers/exynos: Fix an error code in exynos_tmu_probe() 2021-09-26 14:08:57 +02:00
st
tegra
ti-soc-thermal
amlogic_thermal.c
armada_thermal.c
cpufreq_cooling.c
cpuidle_cooling.c
da9062-thermal.c
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
gov_bang_bang.c
gov_fair_share.c
gov_power_allocator.c
gov_step_wise.c
gov_user_space.c
hisi_thermal.c
imx_sc_thermal.c thermal/drivers/imx_sc: Add missing of_node_put for loop iteration 2021-07-25 14:36:16 +02:00
imx_thermal.c thermal/drivers/imx: Implement runtime PM support 2022-01-27 10:53:52 +01:00
imx8mm_thermal.c thermal/drivers/imx8mm: Enable ADC when enabling monitor 2022-01-27 10:53:52 +01:00
k3_bandgap.c
Kconfig
khadas_mcu_fan.c
kirkwood_thermal.c
Makefile
max77620_thermal.c
mtk_thermal.c
qoriq_thermal.c
rcar_gen3_thermal.c thermal/drivers/rcar_gen3_thermal: Do not shadow rcar_gen3_ths_tj_1 2021-07-25 14:36:16 +02:00
rcar_thermal.c
rockchip_thermal.c
spear_thermal.c
sprd_thermal.c thermal/drivers/sprd: Add missing of_node_put for loop iteration 2021-07-25 14:36:16 +02:00
sun8i_thermal.c
tango_thermal.c
thermal_core.c thermal: core: Reset previous low and high trip during thermal zone init 2021-12-08 09:03:19 +01:00
thermal_core.h
thermal_helpers.c
thermal_hwmon.c
thermal_hwmon.h
thermal_mmio.c
thermal_netlink.c thermal: core: Fix TZ_GET_TRIP NULL pointer dereference 2022-03-08 19:09:32 +01:00
thermal_netlink.h
thermal_of.c thermal: Fix NULL pointer dereferences in of_thermal_ functions 2021-11-21 13:46:37 +01:00
thermal_sysfs.c
thermal-generic-adc.c
uniphier_thermal.c
zx2967_thermal.c