Searched hist:c9811d0f (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpu/drm/msm/ |
H A D | msm_gem.c | c9811d0f Wed Oct 11 06:36:56 CDT 2017 Wei Yongjun <weiyongjun1@huawei.com> 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: 8223286d62e2 ("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> c9811d0f Wed Oct 11 06:36:56 CDT 2017 Wei Yongjun <weiyongjun1@huawei.com> 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: 8223286d62e2 ("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>
|