Commit b47c014
committed
cxl/region: Fix cxlr_pmem leaks
jira LE-1907
cve CVE-2024-38391
Rebuild_History Non-Buildable kernel-5.14.0-427.31.1.el9_4
commit-author Li Zhijian <lizhijian@fujitsu.com>
commit 1c987cf
Before this error path, cxlr_pmem pointed to a kzalloc() memory, free
it to avoid this memory leaking.
Fixes: f17b558 ("cxl/pmem: Refactor nvdimm device registration, delete the workqueue")
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240428030748.318985-1-lizhijian@fujitsu.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
(cherry picked from commit 1c987cf)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 1a97edc commit b47c014
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2279 | 2279 | | |
2280 | 2280 | | |
2281 | 2281 | | |
| 2282 | + | |
2282 | 2283 | | |
2283 | 2284 | | |
2284 | 2285 | | |
| |||
0 commit comments