aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
diff options
context:
space:
mode:
authorPhil Chang <[email protected]>2024-06-10 13:31:36 +0000
committerThomas Gleixner <[email protected]>2024-06-25 14:54:27 +0000
commit5a830bbce3af16833fe0092dec47b6dd30279825 (patch)
treeee5a404961727f31232b29208f03e5b96c30e76d /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
parentLinux 6.10-rc4 (diff)
downloadkernel-5a830bbce3af16833fe0092dec47b6dd30279825.tar.gz
kernel-5a830bbce3af16833fe0092dec47b6dd30279825.zip
hrtimer: Prevent queuing of hrtimer without a function callback
The hrtimer function callback must not be NULL. It has to be specified by the call side but it is not validated by the hrtimer code. When a hrtimer is queued without a function callback, the kernel crashes with a null pointer dereference when trying to execute the callback in __run_hrtimer(). Introduce a validation before queuing the hrtimer in hrtimer_start_range_ns(). [anna-maria: Rephrase commit message] Signed-off-by: Phil Chang <[email protected]> Signed-off-by: Anna-Maria Behnsen <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Anna-Maria Behnsen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions