bus/fslmc: fix memory leak in secondary process
authorYunjian Wang <wangyunjian@huawei.com>
Fri, 17 Jul 2020 10:50:17 +0000 (18:50 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 21 Jul 2020 18:48:57 +0000 (20:48 +0200)
commit5ce366525a4cafafd965dd1dfd58c35de1c9ffd7
tree7512886c9b9882eb2fff2a201d53df568dbd883b
parent4cdd49f9b02fa652d0b4ff1e1d56ecc8ca754978
bus/fslmc: fix memory leak in secondary process

In fslmc_process_mcp(), we allocate memory for 'dev_name' but not
released before return in secondary process. And it is not used
since commit a69f79300262 ("bus/fslmc: support multi VFIO group"),
so it can be removed.

Fixes: e55d0494ab98 ("bus/fslmc: support secondary process")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/bus/fslmc/fslmc_vfio.c