* [PATCH 2.6.31] ehea: Fix napi list corruption on ifconfig down
@ 2009-08-04 14:20 Hannes Hering
2009-08-04 18:48 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Hannes Hering @ 2009-08-04 14:20 UTC (permalink / raw)
To: David Miller
Cc: themann, netdev, linux-kernel, raisch, ossrosch, linuxppc-dev,
ossthema, osstklei
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>
---
diff -Nurp -X dontdiff linux-2.6.31-rc5/drivers/net/ehea/ehea.h patched_kernel/drivers/net/ehea/ehea.h
--- linux-2.6.31-rc5/drivers/net/ehea/ehea.h 2009-08-01 02:40:45.000000000 +0200
+++ patched_kernel/drivers/net/ehea/ehea.h 2009-08-03 17:59:26.696079433 +0200
@@ -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
diff -Nurp -X dontdiff linux-2.6.31-rc5/drivers/net/ehea/ehea_main.c patched_kernel/drivers/net/ehea/ehea_main.c
--- linux-2.6.31-rc5/drivers/net/ehea/ehea_main.c 2009-08-01 02:40:45.000000000 +0200
+++ patched_kernel/drivers/net/ehea/ehea_main.c 2009-08-03 17:59:26.696079433 +0200
@@ -1545,6 +1545,9 @@ static int ehea_clean_portres(struct ehe
{
int ret, i;
+ if (pr->qp)
+ netif_napi_del(&pr->napi);
+
ret = ehea_destroy_qp(pr->qp);
if (!ret) {
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH 2.6.31] ehea: Fix napi list corruption on ifconfig down
2009-08-04 14:20 [PATCH 2.6.31] ehea: Fix napi list corruption on ifconfig down Hannes Hering
@ 2009-08-04 18:48 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-08-04 18:48 UTC (permalink / raw)
To: hannes.hering
Cc: themann, netdev, linux-kernel, raisch, ossrosch, linuxppc-dev,
ossthema, osstklei
From: Hannes Hering <hannes.hering@linux.vnet.ibm.com>
Date: Tue, 4 Aug 2009 16:20:15 +0200
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-04 18:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-04 14:20 [PATCH 2.6.31] ehea: Fix napi list corruption on ifconfig down Hannes Hering
2009-08-04 18:48 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).