Skip to content

Commit 08e8a94

Browse files
guohanjunPaolo Abeni
authored andcommitted
net: wwan: t7xx: Fix the ACPI memory leak
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: 13e920d ("net: wwan: t7xx: Add core components") Signed-off-by: Hanjun Guo <guohanjun@huawei.com> Link: https://lore.kernel.org/r/1669119580-28977-1-git-send-email-guohanjun@huawei.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent cd07ead commit 08e8a94

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/net/wwan/t7xx/t7xx_modem_ops.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ static int t7xx_acpi_reset(struct t7xx_pci_dev *t7xx_dev, char *fn_name)
165165
return -EFAULT;
166166
}
167167

168+
kfree(buffer.pointer);
169+
168170
#endif
169171
return 0;
170172
}

0 commit comments

Comments
 (0)