Unverified Commit 1a4b1223 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14925 RDMA/hns: Fix unmatch exception handling when request_irq() fails

parents cd78f9c5 9cbf1233
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -7138,12 +7138,14 @@ static int __hns_roce_request_irq(struct hns_roce_dev *hr_dev, int irq_num,
	return 0;

err_request_failed:
	for (j -= 1; j >= 0; j--)
	for (j -= 1; j >= 0; j--) {
		if (j < other_num) {
			free_irq(hr_dev->irq[j], hr_dev);
		} else {
			continue;
		}
		free_irq(eq_table->eq[j - other_num].irq,
			 &eq_table->eq[j - other_num]);
		if (j < other_num + comp_num)
			tasklet_kill(&eq_table->eq[j - other_num].tasklet);
	}