diff options
author | Li Zhijian <lizhijian@fujitsu.com> | 2024-05-07 08:34:21 +0300 |
---|---|---|
committer | Dave Jiang <dave.jiang@intel.com> | 2024-05-29 02:09:17 +0300 |
commit | 49ba7b515c4c0719b866d16f068e62d16a8a3dd1 (patch) | |
tree | e46d6f4cc5dd59c4d2c5aa266368d28dbf2171cc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d55510527153d17a3af8cc2df69c04f95ae1350d (diff) | |
download | linux-49ba7b515c4c0719b866d16f068e62d16a8a3dd1.tar.xz |
cxl/region: Fix memregion leaks in devm_cxl_add_region()
Move the mode verification to __create_region() before allocating the
memregion to avoid the memregion leaks.
Fixes: 6e099264185d ("cxl/region: Add volatile region creation support")
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/20240507053421.456439-1-lizhijian@fujitsu.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions