]> git.baikalelectronics.ru Git - kernel.git/commit
net: netcp: Fixes the use of spin_lock_bh in timer function
authorWingMan Kwok <w-kwok2@ti.com>
Thu, 23 Jul 2015 19:57:19 +0000 (15:57 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 07:18:39 +0000 (00:18 -0700)
commitcb2986f320f7bd60d45e9b4e51b45453a96a6363
tree89277ca84708901c3855ff62e53df7c293fd0d87
parent6674ed2361183d23ba371447de077509d1900ea2
net: netcp: Fixes the use of spin_lock_bh in timer function

This patch fixes a bug in which the timer routine synchronized
against the ethtool-triggered statistics updates with spin_lock_bh().
A timer function is itself a bottom-half, so this should be
spin_lock().

Signed-off-by: WingMan Kwok <w-kwok2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_ethss.c