]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
liquidio: add cleanup in octeon_setup_iq()
authorWenwen Wang <wenwen@cs.uga.edu>
Wed, 14 Aug 2019 05:14:49 +0000 (00:14 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 26 Sep 2019 04:34:52 +0000 (00:34 -0400)
commit88e989455e5dec428d98c96c8e27972f6835f94a
treeb60b50f384baed3bfaa9a279de4aa66c86c7e568
parent6eac7fc21ce99a1fe676694284b80de51db292fa
liquidio: add cleanup in octeon_setup_iq()

BugLink: https://bugs.launchpad.net/bugs/1843463
[ Upstream commit 6f967f8b1be7001b31c46429f2ee7d275af2190f ]

If oct->fn_list.enable_io_queues() fails, no cleanup is executed, leading
to memory/resource leaks. To fix this issue, invoke
octeon_delete_instr_queue() before returning from the function.

Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/cavium/liquidio/request_manager.c