diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-05-05 13:28:05 +0300 |
---|---|---|
committer | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2022-05-07 02:10:35 +0300 |
commit | cf575e31611eb6dccf08fad02e57e35b2187704d (patch) | |
tree | c887e887b5b465e2982c3146953463378a11be20 /drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | |
parent | ca75f6f7c6f89365e40f10f641b15981b1f07c31 (diff) | |
download | linux-stable-cf575e31611eb6dccf08fad02e57e35b2187704d.tar.gz linux-stable-cf575e31611eb6dccf08fad02e57e35b2187704d.tar.bz2 linux-stable-cf575e31611eb6dccf08fad02e57e35b2187704d.zip |
drm/msm: return an error pointer in msm_gem_prime_get_sg_table()
The msm_gem_prime_get_sg_table() needs to return error pointers on
error. This is called from drm_gem_map_dma_buf() and returning a
NULL will lead to a crash in that function.
Fixes: ac45146733b0 ("drm/msm: fix msm_gem_prime_get_sg_table()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/485023/
Link: https://lore.kernel.org/r/YnOmtS5tfENywR9m@kili
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c')
0 files changed, 0 insertions, 0 deletions