]> git.baikalelectronics.ru Git - kernel.git/commit
sunvnet: remove extra rcu_read_unlocks
authorShannon Nelson <shannon.nelson@oracle.com>
Mon, 13 Feb 2017 18:57:02 +0000 (10:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 18:04:10 +0000 (13:04 -0500)
commit4113c7be2f2e6a5ea7cf3c62c6fa7cb37b0681ea
tree9ef350b43f92ca45362e50ea538e4a9d805e222a
parentb3296c49e4570cec62a922229ceb37b6331e3f06
sunvnet: remove extra rcu_read_unlocks

The RCU read lock is grabbed first thing in sunvnet_start_xmit_common()
so it always needs to be released.  This removes the conditional release
in the dropped packet error path and removes a couple of superfluous
calls in the middle of the code.

Reported-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunvnet_common.c