]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 6 Apr 2017 07:13:52 +0000 (00:13 -0700)
commitd11c49c29d5f4519016118640dc56e9763a8e10f
treef78f9b1e5e543637b156372fece2cdcd0a4f42a8
parent5e3f83f0dfa8b62aabd6bad31b78f305d2d75e3f
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.

Orabug: 23293104

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>
(cherry picked from commit daa86e50f649fccadafc53994ddc4254d75a008b)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
drivers/net/ethernet/sun/sunvnet_common.c