diff options
| author | Li Zhijian <[email protected]> | 2024-04-28 03:07:48 +0000 |
|---|---|---|
| committer | Dave Jiang <[email protected]> | 2024-04-30 21:04:52 +0000 |
| commit | 1c987cf22d6b65ade46145c03eef13f0e3e81d83 (patch) | |
| tree | 2e24b5f6856c7e77955e5f96fd46565b67df84ba /arch/powerpc/lib/code-patching.c | |
| parent | Merge remote-tracking branch 'cxl/for-6.10/dpa-to-hpa' into cxl-for-next (diff) | |
| download | kernel-1c987cf22d6b65ade46145c03eef13f0e3e81d83.tar.gz kernel-1c987cf22d6b65ade46145c03eef13f0e3e81d83.zip | |
cxl/region: Fix cxlr_pmem leaks
Before this error path, cxlr_pmem pointed to a kzalloc() memory, free
it to avoid this memory leaking.
Fixes: f17b558d6663 ("cxl/pmem: Refactor nvdimm device registration, delete the workqueue")
Signed-off-by: Li Zhijian <[email protected]>
Reviewed-by: Dan Williams <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
