Commit 77b310b
cxl/region: Fix leakage in __construct_region()
Failing the first sysfs_update_group() needs to explicitly
kfree the resource as it is too early for cxl_region_iomem_release()
to do so.
Signed-off-by: Davidlohr Bueso <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Reviewed-by: Gregory Price <[email protected]>
Fixes: d6602e2 (cxl/region: Add support to indicate region has extended linear cache)
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Dave Jiang <[email protected]>1 parent 19d2f0b commit 77b310b
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3854 | 3854 | | |
3855 | 3855 | | |
3856 | 3856 | | |
3857 | | - | |
| 3857 | + | |
| 3858 | + | |
3858 | 3859 | | |
| 3860 | + | |
3859 | 3861 | | |
3860 | 3862 | | |
3861 | 3863 | | |
| |||
0 commit comments