]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: int340x: Use kcalloc() instead of kzalloc() with multiplication
authorLukasz Luba <lukasz.luba@arm.com>
Mon, 24 Feb 2025 17:33:05 +0000 (17:33 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 26 Feb 2025 19:55:42 +0000 (20:55 +0100)
commite6c0525fc6afb2e88c02b13a58a036d95492e6f6
tree90c4cf9057bff24352785f7852b0c590b8b059ad
parent83c34f5099bf38917b8518404f4ff32d5878fa8d
thermal: int340x: Use kcalloc() instead of kzalloc() with multiplication

According to the latest recommendations, kcalloc() should be used
instead of kzalloc() with multiplication (which might overflow).

Switch to this new scheme and use more safe kcalloc().

No functional impact.

Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/20250224173432.1946070-4-lukasz.luba@arm.com
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c