You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
malidp: Fix NULL vs IS_ERR() checking
commit 15342f930e upstream.
The get_sg_table() function does not return NULL.
It returns error pointers.
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://lore.kernel.org/dri-devel/20211213072115.18098-1-linmq006@gmail.com/
Signed-off-by: Stefan Ghinea <stefan.ghinea@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1dfc0a52f7
commit
a5bbea50d6
@@ -348,7 +348,7 @@ static bool malidp_check_pages_threshold(struct malidp_plane_state *ms,
|
||||
else
|
||||
sgt = obj->funcs->get_sg_table(obj);
|
||||
|
||||
if (!sgt)
|
||||
if (IS_ERR(sgt))
|
||||
return false;
|
||||
|
||||
sgl = sgt->sgl;
|
||||
|
||||
Reference in New Issue
Block a user