diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-10-11 14:36:56 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-10-12 17:59:56 +0300 |
commit | c9811d0fa55929b182f62e0ee49b71b0bea6a936 (patch) | |
tree | a46d20541bab574dec847277e92d5e7a9ebb3959 /drivers/gpu/drm/msm/dsi/dsi_host.c | |
parent | f44001e2637138d9d506efe8da67011f8170e860 (diff) | |
download | linux-c9811d0fa55929b182f62e0ee49b71b0bea6a936.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/msm/dsi/dsi_host.c')
0 files changed, 0 insertions, 0 deletions