aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
diff options
context:
space:
mode:
authorCarlos López <[email protected]>2024-07-15 11:24:34 +0000
committerJens Axboe <[email protected]>2024-07-15 16:57:39 +0000
commit8e64d2356cbc800b4cd0e3e614797f76bcf0cdb8 (patch)
treef66033a2029ee472f688560d4eda7f0de5424fe8 /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
parents390/dasd: add missing MODULE_DESCRIPTION() macros (diff)
downloadkernel-8e64d2356cbc800b4cd0e3e614797f76bcf0cdb8.tar.gz
kernel-8e64d2356cbc800b4cd0e3e614797f76bcf0cdb8.zip
s390/dasd: fix error checks in dasd_copy_pair_store()
dasd_add_busid() can return an error via ERR_PTR() if an allocation fails. However, two callsites in dasd_copy_pair_store() do not check the result, potentially resulting in a NULL pointer dereference. Fix this by checking the result with IS_ERR() and returning the error up the stack. Fixes: a91ff09d39f9b ("s390/dasd: add copy pair setup") Signed-off-by: Carlos López <[email protected]> Signed-off-by: Stefan Haberland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions