aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorYunshui Jiang <[email protected]>2025-07-04 04:56:02 +0000
committerDmitry Torokhov <[email protected]>2025-07-04 05:20:46 +0000
commit4cf65845fdd09d711fc7546d60c9abe010956922 (patch)
tree99b8a9adf283a943db83ea618098a498423be7d6 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parentInput: alps - use scnprintf() to suppress truncation warning (diff)
downloadkernel-4cf65845fdd09d711fc7546d60c9abe010956922.tar.gz
kernel-4cf65845fdd09d711fc7546d60c9abe010956922.zip
Input: cs40l50-vibra - fix potential NULL dereference in cs40l50_upload_owt()
The cs40l50_upload_owt() function allocates memory via kmalloc() without checking for allocation failure, which could lead to a NULL pointer dereference. Return -ENOMEM in case allocation fails. Signed-off-by: Yunshui Jiang <[email protected]> Fixes: c38fe1bb5d21 ("Input: cs40l50 - Add support for the CS40L50 haptic driver") Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions