Patch "net: wwan: t7xx: Fix the ACPI memory leak" has been added to the 6.0-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

    net: wwan: t7xx: Fix the ACPI memory leak

to the 6.0-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:
     net-wwan-t7xx-fix-the-acpi-memory-leak.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e92470b62594c52c9671f1ab1485733402d45130
Author: Hanjun Guo <guohanjun@xxxxxxxxxx>
Date:   Tue Nov 22 20:19:40 2022 +0800

    net: wwan: t7xx: Fix the ACPI memory leak
    
    [ Upstream commit 08e8a949f684e1fbc4b1efd2337d72ec8f3613d9 ]
    
    The ACPI buffer memory (buffer.pointer) should be freed as the
    buffer is not used after acpi_evaluate_object(), free it to
    prevent memory leak.
    
    Fixes: 13e920d93e37 ("net: wwan: t7xx: Add core components")
    Signed-off-by: Hanjun Guo <guohanjun@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/1669119580-28977-1-git-send-email-guohanjun@xxxxxxxxxx
    Signed-off-by: Paolo Abeni <pabeni@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wwan/t7xx/t7xx_modem_ops.c b/drivers/net/wwan/t7xx/t7xx_modem_ops.c
index 3458af31e864..7d0f5e4f0a78 100644
--- a/drivers/net/wwan/t7xx/t7xx_modem_ops.c
+++ b/drivers/net/wwan/t7xx/t7xx_modem_ops.c
@@ -165,6 +165,8 @@ static int t7xx_acpi_reset(struct t7xx_pci_dev *t7xx_dev, char *fn_name)
 		return -EFAULT;
 	}
 
+	kfree(buffer.pointer);
+
 #endif
 	return 0;
 }



[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