]> 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)
commitd4f216b65fa349cf34458a883c3c10072a5dfae7
tree89277ca84708901c3855ff62e53df7c293fd0d87
parent921b848f6cfebe57c6819d018a8959e7ab9e97d8
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