diff options
| author | Qiheng Lin <[email protected]> | 2021-05-14 08:28:12 +0000 |
|---|---|---|
| committer | Zack Rusin <[email protected]> | 2021-05-14 18:39:14 +0000 |
| commit | 527a9471878e619add51825640a76d9777218445 (patch) | |
| tree | 8dd5c2ada64f364424ccc0418cd035a4f23e145e /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | drm/vmwgfx: Fix memory allocation check and a leak of object fifo (diff) | |
| download | kernel-527a9471878e619add51825640a76d9777218445.tar.gz kernel-527a9471878e619add51825640a76d9777218445.zip | |
drm/vmwgfx: Fix return value check in vmw_setup_pci_resources()
In case of error, the function devm_ioremap() returns NULL pointer not ERR_PTR().
The IS_ERR() test in the return value check should be replaced with NULL test.
After that, the error code -ENOMEM should be returned.
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Qiheng Lin <[email protected]>
Signed-off-by: Zack Rusin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
