nvethernet: fix common irq free path

issue: freeing common irq in ether_free_irqs without check

fix: Use mask for common interrupt as well so it can be used to
check before freeing irq

Bug 200512422

Change-Id: I694ba983658fae3da6948ceda18d24c11f08d458
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2081600
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Rakesh Goyal
2019-03-15 11:44:18 +05:30
committed by Revanth Kumar Uppala
parent 2893067ed3
commit 0975ee4989
2 changed files with 8 additions and 1 deletions

View File

@@ -127,6 +127,7 @@ struct ether_priv_data {
unsigned int rx_irq_alloc_mask;
unsigned int tx_irq_alloc_mask;
unsigned int common_irq_alloc_mask;
int common_irq;
int tx_irqs[ETHER_MAX_IRQS];