Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-09-10 19:19:54 +0200
committerTakashi Iwai <tiwai@suse.de>2019-09-10 19:20:08 +0200
commitcce425868941e14b62bc4a5ec45a3048bd765f30 (patch)
treecdc2bcc1d646a6f26c9b7bcd2694fa7df3a8f54d
parentfe6f7032e01d667f3beaf50d3068d7c424c77644 (diff)
liquidio: add cleanup in octeon_setup_iq() (bsc#1051510).
-rw-r--r--drivers/net/ethernet/cavium/liquidio/request_manager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/request_manager.c b/drivers/net/ethernet/cavium/liquidio/request_manager.c
index 1e0fbce86d60..55e873126463 100644
--- a/drivers/net/ethernet/cavium/liquidio/request_manager.c
+++ b/drivers/net/ethernet/cavium/liquidio/request_manager.c
@@ -232,8 +232,10 @@ int octeon_setup_iq(struct octeon_device *oct,
}
oct->num_iqs++;
- if (oct->fn_list.enable_io_queues(oct))
+ if (oct->fn_list.enable_io_queues(oct)) {
+ octeon_delete_instr_queue(oct, iq_no);
return 1;
+ }
return 0;
}