diff options
| author | Brett Creeley <[email protected]> | 2024-09-12 17:49:22 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-09-14 03:00:27 +0000 |
| commit | 9f3e7f11f21ac83cd99428390165177d4953b005 (patch) | |
| tree | 62ca1516c0b61cb7ed77e78e36fce70e00e94d30 /drivers/net/netkit.c | |
| parent | net: ipv6: rpl_iptunnel: Fix memory leak in rpl_input (diff) | |
| download | kernel-9f3e7f11f21ac83cd99428390165177d4953b005.tar.gz kernel-9f3e7f11f21ac83cd99428390165177d4953b005.zip | |
fbnic: Set napi irq value after calling netif_napi_add
The driver calls netif_napi_set_irq() and then calls netif_napi_add(),
which calls netif_napi_add_weight(). At the end of
netif_napi_add_weight() is a call to netif_napi_set_irq(napi, -1), which
clears the previously set napi->irq value. Fix this by calling
netif_napi_set_irq() after calling netif_napi_add().
This was found when reviewing another patch and I have no way to test
this, but the fix seemed relatively straight forward.
Fixes: bc6107771bb4 ("eth: fbnic: Allocate a netdevice and napi vectors with queues")
Signed-off-by: Brett Creeley <[email protected]>
Reviewed-by: Joe Damato <[email protected]>
Reviewed-by: Vadim Fedorenko <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions
