hinic: reset irq affinity before freeing irq
commit82be2ab159a3a0ae4024b946a31f12b221f6c8ff
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 27 Jun 2018 09:47:37 +0000 (27 17:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2018 04:34:57 +0000 (28 13:34 +0900)
tree4072ce13b236429e9e646c503bb710f9e252bd80
parent09014418391cab8b11427d19d8c968b594f56925
hinic: reset irq affinity before freeing irq

Following warning is seen when rmmod hinic. This is because affinity
value is not reset before calling free_irq(). This patch fixes it.

[   55.181232] WARNING: CPU: 38 PID: 19589 at kernel/irq/manage.c:1608
__free_irq+0x2aa/0x2c0

Fixes: 352f58b0d9f2 ("net-next/hinic: Set Rxq irq to specific cpu for NUMA")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_rx.c