aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-04-15 10:34:54 +0000
committerMark Brown <[email protected]>2024-04-15 10:54:57 +0000
commit991b5e2aad870828669ca105f424ef1b2534f820 (patch)
treec12bffc2c9255601799a7dab973a89a269fb9617 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentregmap: spi: Add missing MODULE_DESCRIPTION() (diff)
downloadkernel-991b5e2aad870828669ca105f424ef1b2534f820.tar.gz
kernel-991b5e2aad870828669ca105f424ef1b2534f820.zip
regmap: kunit: Fix an NULL vs IS_ERR() check
The kunit_device_register() function returns error pointers, not NULL. Passing an error pointer to get_device() will lead to an Oops. Also get_device() returns the same device you passed to it. Fix it! ;) Fixes: 7b7982f14315 ("regmap: kunit: Create a struct device for the regmap") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions