diff options
| author | Gustavo A. R. Silva <[email protected]> | 2018-06-25 12:18:44 +0000 |
|---|---|---|
| committer | Ville Syrjälä <[email protected]> | 2018-06-26 13:23:46 +0000 |
| commit | 80c18ba11a7a84cb97e39e5c9b6cdeee9f3c0728 (patch) | |
| tree | 4d4831d233247f6b92abfad87d333ba8b473558a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/gma500: Replace drm_gem_object_unreference_unlocked with put function (diff) | |
| download | kernel-80c18ba11a7a84cb97e39e5c9b6cdeee9f3c0728.tar.gz kernel-80c18ba11a7a84cb97e39e5c9b6cdeee9f3c0728.zip | |
drm/gma500: Fix potential NULL pointer dereference
fb is being dereferenced before it is null checked, hence there
is a potential null pointer dereference.
Fix this by moving the pointer dereference after fb has been
properly null checked at line 74: if (!fb)
Addresses-Coverity-ID: 1470169 ("Dereference before null check")
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
