Skip to content
Commit c9811d0f authored by Wei Yongjun's avatar Wei Yongjun Committed by Rob Clark
Browse files

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: 8223286d ("drm/msm: Add a helper function for in-kernel
buffer allocations")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent f44001e2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment