diff options
author | Colin Ian King | 2017-09-08 16:13:33 +0200 |
---|---|---|
committer | Oded Gabbay | 2017-09-08 16:13:33 +0200 |
commit | bfaa1ce809bbcd12b1399409ab1dbf0cdaba6e27 (patch) | |
tree | d9756188eedec6d415652f8d7cad20d229f61dc0 /drivers/gpu/drm/savage/savage_state.c | |
parent | Merge tag 'exynos-drm-fixes-for-v4.14-rc1' of git://git.kernel.org/pub/scm/li... (diff) | |
download | kernel-qcow2-linux-bfaa1ce809bbcd12b1399409ab1dbf0cdaba6e27.tar.gz kernel-qcow2-linux-bfaa1ce809bbcd12b1399409ab1dbf0cdaba6e27.tar.xz kernel-qcow2-linux-bfaa1ce809bbcd12b1399409ab1dbf0cdaba6e27.zip |
drm/amdkfd: check for null dev to avoid a null pointer dereference
The call to kfd_device_by_id can potentially return null, so check that
dev is null and return with -EINVAL to avoid a null pointer dereference.
Detected by CoverityScan CID#1454629 ("Dereference null return value")
Fixes: 5d71dbc3a588 ("drm/amdkfd: Implement image tiling mode support v2")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/savage/savage_state.c')
0 files changed, 0 insertions, 0 deletions