summaryrefslogtreecommitdiff
path: root/lib/int_sqrt.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-04-22 19:56:17 +0200
committerZhang Rui <rui.zhang@intel.com>2018-04-24 20:50:43 +0800
commit13b86f50eaaddaea4bdd2fe476fd12e6a0951add (patch)
treefa4cdc2804d153885ed95c6fa016bcd0cbe2a8db /lib/int_sqrt.c
parent6d08b06e67cd117f6992c46611dfb4ce267cd71e (diff)
thermal: int3403_thermal: Fix NULL pointer deref on module load / probe
Starting with kernel 4.17 thermal_cooling_device_register() will call the get_max_state() op during register. Since we deref priv->priv in int3403_get_max_state() this means we must set priv->priv before calling thermal_cooling_device_register(). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'lib/int_sqrt.c')
0 files changed, 0 insertions, 0 deletions