numam-dpdk/drivers
Kevin Laatz 1a57c8d553 dma/idxd: fix partial freeing in PCI close
During PCI device close, any allocated memory needs to be free'd.
Currently, one of the free's is being called on an incorrect idxd_dmadev
struct member, namely 'batch_idx_ring'.

At device creation, memory is allocated for both 'batch_comp_ring' and
'batch_idx_ring' simultaneously. Calling free only on 'batch_idx_ring'
meant the first half of this memory was not being free'd, leading to the
memleak.

This patch fixes this memleak by calling free on 'batch_comp_ring' which
will free the memory for both rings.

Fixes: 9449330a84 ("dma/idxd: create dmadev instances on PCI probe")
Cc: stable@dpdk.org

Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2022-07-05 21:34:38 +02:00
..
baseband baseband/acc100: remove prefix of internal file 2022-06-30 06:54:21 +02:00
bus net/netvsc: fix vmbus device reference in multi-process 2022-06-30 14:44:58 +02:00
common common/mlx5: fix non-expandable global MR cache 2022-07-05 20:03:44 +02:00
compress compress/octeontx: support OCTEON TX2 SoC family 2022-04-29 11:36:46 +02:00
crypto crypto/openssl: fix 3.0 EVP_PKEY usage in RSA operations 2022-07-05 18:30:24 +02:00
dma dma/idxd: fix partial freeing in PCI close 2022-07-05 21:34:38 +02:00
event event/dlb2: fix port COS initialization 2022-07-04 18:04:52 +02:00
gpu gpu/cuda: unmap GPU memory while freeing 2022-05-24 23:09:49 +02:00
mempool common/cnxk: support CNF10KB SoC 2022-06-17 14:18:33 +02:00
net net/mlx5: reject negative integrity item configuration 2022-07-05 20:04:02 +02:00
raw raw/ifpga/base: check null pointer in PMCI 2022-06-26 12:20:44 +02:00
regex replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
vdpa vdpa/mlx5: use common interrupt management 2022-07-05 20:15:28 +02:00
meson.build build: add definitions for use as Meson subproject 2022-06-07 20:49:20 +02:00