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

Commit 11513128 authored by Jeff Moyer's avatar Jeff Moyer Committed by David S. Miller
Browse files

[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: default avatarJeff Moyer <jmoyer@redhat.com>
Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a0d3bea3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;