Patch "malidp: Fix NULL vs IS_ERR() checking" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.10-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.10 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.10/pinctrl-rockchip-fix-refcount-leak-in-rockchip_pinct.patch
queue-5.10/malidp-fix-null-vs-is_err-checking.patch
queue-5.10/irqchip-irq-mvebu-gicp-fix-refcount-leak-in-mvebu_gi.patch
queue-5.10/leds-led-core-fix-refcount-leak-in-of_led_get.patch
queue-5.10/wifi-ath11k-fix-memory-leak-in-ath11k_peer_rx_frag_s.patch
queue-5.10/objtool-fix-memory-leak-in-create_static_call_sectio.patch
queue-5.10/irqchip-fix-refcount-leak-in-platform_irqchip_probe.patch
queue-5.10/irqchip-ti-sci-fix-refcount-leak-in-ti_sci_intr_irq_.patch
queue-5.10/pinctrl-stm32-fix-refcount-leak-in-stm32_pctrl_get_i.patch
queue-5.10/irqchip-alpine-msi-fix-refcount-leak-in-alpine_msix_.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux