diff options
| author | Li Ming <[email protected]> | 2025-06-13 01:16:48 +0000 |
|---|---|---|
| committer | Dave Jiang <[email protected]> | 2025-06-13 15:45:30 +0000 |
| commit | a403fe6c0b17f472e01246eb350f5eef105243ac (patch) | |
| tree | 05cced94693ee85d6eab940d9ee7fe8760e0ce83 /lib/crypto/mpi/mpi-cmp.c | |
| parent | cxl/Documentation: Add more description about min/max scrub cycle (diff) | |
| download | kernel-a403fe6c0b17f472e01246eb350f5eef105243ac.tar.gz kernel-a403fe6c0b17f472e01246eb350f5eef105243ac.zip | |
cxl/edac: Fix potential memory leak issues
In cxl_store_rec_gen_media() and cxl_store_rec_dram(), use kmemdup() to
duplicate a cxl gen_media/dram event to store the event in a xarray by
xa_store(). The cxl gen_media/dram event allocated by kmemdup() should
be freed in the case that the xa_store() fails.
Fixes: 0b5ccb0de1e2 ("cxl/edac: Support for finding memory operation attributes from the current boot")
Signed-off-by: Li Ming <[email protected]>
Tested-by: Shiju Jose <[email protected]>
Reviewed-by: Shiju Jose <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
