From: Jeff Moyer Date: Fri, 12 Aug 2005 02:23:04 +0000 (-0700) Subject: [NETPOLL]: rx_flags bugfix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=11513128bb66b0b09d5d0df069b58afdb01752a2;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [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 Signed-off-by: Matt Mackall Signed-off-by: David S. Miller --- 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) if (!npinfo) goto release; + npinfo->rx_flags = 0; npinfo->rx_np = NULL; npinfo->poll_lock = SPIN_LOCK_UNLOCKED; npinfo->poll_owner = -1;