diff options
author | Li Zhijian <lizhijian@fujitsu.com> | 2024-05-07 13:34:21 +0800 |
---|---|---|
committer | Dave Jiang <dave.jiang@intel.com> | 2024-05-28 16:09:17 -0700 |
commit | 49ba7b515c4c0719b866d16f068e62d16a8a3dd1 (patch) | |
tree | e46d6f4cc5dd59c4d2c5aa266368d28dbf2171cc /net/unix/af_unix.c | |
parent | d55510527153d17a3af8cc2df69c04f95ae1350d (diff) |
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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions