The patch titled Subject: drivers/thermal/exynos_thermal.c: fix NULL pointer dereference in exynos_unregister_thermal() has been removed from the -mm tree. Its filename was thermal-exynos-fix-null-pointer-dereference-in-exynos_unregister_thermal.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Sachin Kamat <sachin.kamat@xxxxxxxxxx> Subject: drivers/thermal/exynos_thermal.c: fix NULL pointer dereference in exynos_unregister_thermal() exynos_unregister_thermal() is functional only when 'th_zone' is not NULL (ensured by the NULL checks). However, in the event it is NULL, it gets dereferenced in the for loop. This patch fixes this issue. Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx> Cc: Durgadoss R <durgadoss.r@xxxxxxxxx> Cc: Amit Daniel Kachhap <amit.kachhap@xxxxxxxxxx> Cc: Len Brown <lenb@xxxxxxxxxx> Cc: "Brown, Len" <len.brown@xxxxxxxxx> Cc: Zhang Rui <rui.zhang@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/thermal/exynos_thermal.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff -puN drivers/thermal/exynos_thermal.c~thermal-exynos-fix-null-pointer-dereference-in-exynos_unregister_thermal drivers/thermal/exynos_thermal.c --- a/drivers/thermal/exynos_thermal.c~thermal-exynos-fix-null-pointer-dereference-in-exynos_unregister_thermal +++ a/drivers/thermal/exynos_thermal.c @@ -475,11 +475,14 @@ static void exynos_unregister_thermal(vo { int i; - if (th_zone && th_zone->therm_dev) + if (!th_zone) + return; + + if (th_zone->therm_dev) thermal_zone_device_unregister(th_zone->therm_dev); for (i = 0; i < th_zone->cool_dev_size; i++) { - if (th_zone && th_zone->cool_dev[i]) + if (th_zone->cool_dev[i]) cpufreq_cooling_unregister(th_zone->cool_dev[i]); } _ Patches currently in -mm which might be from sachin.kamat@xxxxxxxxxx are origin.patch linux-next.patch mm-hugetlbc-remove-duplicate-inclusion-of-header-file.patch memcg-cleanup-kmem-tcp-ifdefs.patch memcg-move-mem_cgroup_is_root-upwards.patch drivers-video-backlight-da9052_blc-use-usleep_range-instead-of-msleep-for-small-sleeps.patch drivers-video-backlight-ltv350qvc-use-usleep_range-instead-of-msleep-for-small-sleeps.patch drivers-video-backlight-kb3886_blc-use-usleep_range-instead-of-msleep-for-small-sleeps.patch drivers-rtc-rtc-s3cc-fix-return-value-in-s3c_rtc_probe.patch proc-use-null-instead-of-0-for-pointer.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html