Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 357eb46d authored by Hannes Hering's avatar Hannes Hering Committed by David S. Miller
Browse files

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: default avatarHannes Hering <hering2@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e0cff5ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -40,7 +40,7 @@
#include <asm/io.h>
#include <asm/io.h>


#define DRV_NAME	"ehea"
#define DRV_NAME	"ehea"
#define DRV_VERSION	"EHEA_0101"
#define DRV_VERSION	"EHEA_0102"


/* eHEA capability flags */
/* eHEA capability flags */
#define DLPAR_PORT_ADD_REM 1
#define DLPAR_PORT_ADD_REM 1
+3 −0
Original line number Original line Diff line number Diff line
@@ -1545,6 +1545,9 @@ static int ehea_clean_portres(struct ehea_port *port, struct ehea_port_res *pr)
{
{
	int ret, i;
	int ret, i;


	if (pr->qp)
		netif_napi_del(&pr->napi);

	ret = ehea_destroy_qp(pr->qp);
	ret = ehea_destroy_qp(pr->qp);


	if (!ret) {
	if (!ret) {