Skip to content
Commit 20ecb499 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (coretemp) Avoid leaving around dangling pointer



Storing the struct temp_data pointer allocated from create_core_data()
when returning an error has the potential of leaving around a pointer
to freed memory. Reset it to NULL for error returns.

Reported-by: default avatarJan Beulich <jbeulich@suse.com>
Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
Acked-by: default avatarJean Delvare <khali@linux-fr.org>
parent 0eb9782a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment