diff options
| author | Jeff Moyer <jmoyer@redhat.com> | 2005-08-11 22:23:04 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2005-08-11 22:23:04 -0400 |
| commit | 11513128bb66b0b09d5d0df069b58afdb01752a2 (patch) | |
| tree | 2c6cb83eb623e7e0ac997f8cb21c0998fe082b2e | |
| parent | a0d3bea3cf6c7c1b53a46432bd490b5dc784ca42 (diff) | |
[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 <jmoyer@redhat.com>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | net/core/netpoll.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index c327c9edadc5..895f3efc65aa 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
| @@ -639,6 +639,7 @@ int netpoll_setup(struct netpoll *np) | |||
| 639 | if (!npinfo) | 639 | if (!npinfo) |
| 640 | goto release; | 640 | goto release; |
| 641 | 641 | ||
| 642 | npinfo->rx_flags = 0; | ||
| 642 | npinfo->rx_np = NULL; | 643 | npinfo->rx_np = NULL; |
| 643 | npinfo->poll_lock = SPIN_LOCK_UNLOCKED; | 644 | npinfo->poll_lock = SPIN_LOCK_UNLOCKED; |
| 644 | npinfo->poll_owner = -1; | 645 | npinfo->poll_owner = -1; |
