aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorHenry Martin <[email protected]>2025-04-01 09:16:47 +0000
committerLee Jones <[email protected]>2025-04-15 17:27:38 +0000
commite12d3e1624a02706cdd3628bbf5668827214fa33 (patch)
tree245e60494f52e4a04f7cc798924a07067aee7e07 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parentfbdev: Remove constants of unused events (diff)
downloadkernel-e12d3e1624a02706cdd3628bbf5668827214fa33.tar.gz
kernel-e12d3e1624a02706cdd3628bbf5668827214fa33.zip
backlight: pm8941: Add NULL check in wled_configure()
devm_kasprintf() returns NULL when memory allocation fails. Currently, wled_configure() does not check for this case, which results in a NULL pointer dereference. Add NULL check after devm_kasprintf() to prevent this issue. Fixes: f86b77583d88 ("backlight: pm8941: Convert to using %pOFn instead of device_node.name") Signed-off-by: Henry Martin <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Reviewed-by: "Daniel Thompson (RISCstar)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions