mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
ehea: Fix napi list corruption on ifconfig down
This patch fixes the napi list handling when an ehea interface is shut down to avoid corruption of the napi list. Signed-off-by: Hannes Hering <hering2@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e0cff5ed27
commit
357eb46d8f
2 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,7 @@
|
|||
#include <asm/io.h>
|
||||
|
||||
#define DRV_NAME "ehea"
|
||||
#define DRV_VERSION "EHEA_0101"
|
||||
#define DRV_VERSION "EHEA_0102"
|
||||
|
||||
/* eHEA capability flags */
|
||||
#define DLPAR_PORT_ADD_REM 1
|
||||
|
|
|
@ -1545,6 +1545,9 @@ static int ehea_clean_portres(struct ehea_port *port, struct ehea_port_res *pr)
|
|||
{
|
||||
int ret, i;
|
||||
|
||||
if (pr->qp)
|
||||
netif_napi_del(&pr->napi);
|
||||
|
||||
ret = ehea_destroy_qp(pr->qp);
|
||||
|
||||
if (!ret) {
|
||||
|
|
Loading…
Reference in a new issue