aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2024-11-14 16:25:09 +0000
committerRafael J. Wysocki <[email protected]>2024-11-14 16:40:47 +0000
commit0104dcdaad3a7afd141e79a5fb817a92ada910ac (patch)
tree5bda6e27c82bb79d1fc3633788c0d6617f271c80 /drivers/platform/x86/intel/pmt/class.c
parentthermal: testing: Use DEFINE_FREE() and __free() to simplify code (diff)
downloadkernel-0104dcdaad3a7afd141e79a5fb817a92ada910ac.tar.gz
kernel-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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions