summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-11-14 17:25:09 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-11-14 17:40:47 +0100
commit0104dcdaad3a7afd141e79a5fb817a92ada910ac (patch)
tree5bda6e27c82bb79d1fc3633788c0d6617f271c80 /drivers/platform/x86/intel/pmt/class.c
parent1c426fd09ca85fb77f120f7933e39eb9df99a39a (diff)
downloadlinux-0104dcdaad3a7afd141e79a5fb817a92ada910ac.tar.gz
linux-0104dcdaad3a7afd141e79a5fb817a92ada910ac.tar.bz2
linux-0104dcdaad3a7afd141e79a5fb817a92ada910ac.zip
thermal: testing: Initialize some variables annoteded with _free()
Variables annotated with __free() need to be initialized if the function can return before they get updated for the first time or the attempt to free the memory pointed to by them upon function return may crash the kernel. Fix this issue in some places in the thermal testing code. Fixes: f6a034f2df42 ("thermal: Introduce a debugfs-based testing facility") Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/12576267.O9o76ZdvQC@rjwysocki.net
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions