This is a note to let you know that I've just added the patch titled malidp: Fix NULL vs IS_ERR() checking to the 5.15-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: malidp-fix-null-vs-is_err-checking.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 15342f930ebebcfe36f2415049736a77d7d2e045 Mon Sep 17 00:00:00 2001 From: Miaoqian Lin <linmq006@xxxxxxxxx> Date: Mon, 13 Dec 2021 07:21:15 +0000 Subject: malidp: Fix NULL vs IS_ERR() checking From: Miaoqian Lin <linmq006@xxxxxxxxx> commit 15342f930ebebcfe36f2415049736a77d7d2e045 upstream. The get_sg_table() function does not return NULL. It returns error pointers. Signed-off-by: Miaoqian Lin <linmq006@xxxxxxxxx> Signed-off-by: Liviu Dudau <liviu.dudau@xxxxxxx> Link: https://lore.kernel.org/dri-devel/20211213072115.18098-1-linmq006@xxxxxxxxx/ Signed-off-by: Stefan Ghinea <stefan.ghinea@xxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/gpu/drm/arm/malidp_planes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/arm/malidp_planes.c +++ b/drivers/gpu/drm/arm/malidp_planes.c @@ -348,7 +348,7 @@ static bool malidp_check_pages_threshold else sgt = obj->funcs->get_sg_table(obj); - if (!sgt) + if (IS_ERR(sgt)) return false; sgl = sgt->sgl; Patches currently in stable-queue which might be from linmq006@xxxxxxxxx are queue-5.15/malidp-fix-null-vs-is_err-checking.patch queue-5.15/usb-gadget-lpc32xx_udc-fix-memory-leak-with-using-de.patch queue-5.15/objtool-fix-memory-leak-in-create_static_call_sectio.patch