]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: fix return value check in _msm_gem_kernel_new()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 11 Oct 2017 11:36:56 +0000 (11:36 +0000)
committerRob Clark <robdclark@gmail.com>
Thu, 12 Oct 2017 14:59:56 +0000 (10:59 -0400)
commit8a779966a8bc297d154d9f060c503e5799a481b8
treea46d20541bab574dec847277e92d5e7a9ebb3959
parentcb6df942fbd2779e97fcc5dc9b74519f1e9e6430
drm/msm: fix return value check in _msm_gem_kernel_new()

In case of error, the function msm_gem_get_vaddr() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: d955e6cc89b2 ("drm/msm: Add a helper function for in-kernel
buffer allocations")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem.c