public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Fix memory leak and move to modern scope based rollback
@ 2023-09-26 18:45 Michal Wilczynski
  2023-09-26 18:45 ` [PATCH v1 1/2] ACPI: NFIT: Fix memory leak, and local use of devm_*() Michal Wilczynski
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Michal Wilczynski @ 2023-09-26 18:45 UTC (permalink / raw)
  To: linux-acpi, linux-kernel, nvdimm
  Cc: rafael.j.wysocki, andriy.shevchenko, lenb, dan.j.williams,
	vishal.l.verma, ira.weiny, Michal Wilczynski

In acpi_nfit_init_interleave_set() there is a memory leak + improper use
of devm_*() family of functions for local memory allocations. This patch
series provides two commits - one is meant as a bug fix, and could
potentially be backported, and the other one improves old style rollback
with scope based, similar to C++ RAII [1].

Link: https://lwn.net/Articles/934679/ [1]

Michal Wilczynski (2):
  ACPI: NFIT: Fix memory leak, and local use of devm_*()
  ACPI: NFIT: Use modern scope based rollback

 drivers/acpi/nfit/core.c | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-10-12 23:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-26 18:45 [PATCH v1 0/2] Fix memory leak and move to modern scope based rollback Michal Wilczynski
2023-09-26 18:45 ` [PATCH v1 1/2] ACPI: NFIT: Fix memory leak, and local use of devm_*() Michal Wilczynski
2023-09-26 18:52   ` Dave Jiang
2023-10-02  9:37   ` Andy Shevchenko
2023-10-12 23:40   ` Dan Williams
2023-09-26 18:45 ` [PATCH v1 2/2] ACPI: NFIT: Use modern scope based rollback Michal Wilczynski
2023-09-26 18:50   ` Dave Jiang
2023-10-02  9:38   ` Andy Shevchenko
2023-10-11 14:14 ` [PATCH v1 0/2] Fix memory leak and move to " Wilczynski, Michal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox