diff options
| author | Hans de Goede <[email protected]> | 2018-04-22 17:56:17 +0000 |
|---|---|---|
| committer | Zhang Rui <[email protected]> | 2018-04-24 12:50:43 +0000 |
| commit | 13b86f50eaaddaea4bdd2fe476fd12e6a0951add (patch) | |
| tree | fa4cdc2804d153885ed95c6fa016bcd0cbe2a8db /fs/proc/array.c | |
| parent | Linux 4.17-rc2 (diff) | |
| download | kernel-13b86f50eaaddaea4bdd2fe476fd12e6a0951add.tar.gz kernel-13b86f50eaaddaea4bdd2fe476fd12e6a0951add.zip | |
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 <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
