tree 2c6cb83eb623e7e0ac997f8cb21c0998fe082b2e
parent a0d3bea3cf6c7c1b53a46432bd490b5dc784ca42
author Jeff Moyer <[EMAIL PROTECTED]> Fri, 12 Aug 2005 09:23:04 -0700
committer David S. Miller <[EMAIL PROTECTED]> Fri, 12 Aug 2005 09:23:04 -0700

[NETPOLL]: rx_flags bugfix

Initialize npinfo->rx_flags.  The way it stands now, this will have random
garbage, and so will incur a locking penalty even when an rx_hook isn't
registered and we are not active in the netpoll polling code.

Signed-off-by: Jeff Moyer <[EMAIL PROTECTED]>
Signed-off-by: Matt Mackall <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>

 net/core/netpoll.c |    1 +
 1 files changed, 1 insertion(+)

diff --git a/net/core/netpoll.c b/net/core/netpoll.c
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -639,6 +639,7 @@ int netpoll_setup(struct netpoll *np)
                if (!npinfo)
                        goto release;
 
+               npinfo->rx_flags = 0;
                npinfo->rx_np = NULL;
                npinfo->poll_lock = SPIN_LOCK_UNLOCKED;
                npinfo->poll_owner = -1;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to