]> git.baikalelectronics.ru Git - kernel.git/commit
slip: fix spinlock variant
authorOliver Hartkopp <socketcan@hartkopp.net>
Sat, 26 Apr 2014 19:18:32 +0000 (21:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Apr 2014 03:35:12 +0000 (23:35 -0400)
commitd4b5b79e5bacecae768c2a7472664443c968d513
tree6717b36b0125f70df78388c73ab95c26b81fb60f
parentcc1831ea65fd07dbaeb35cfc7c7ce2c580600c3c
slip: fix spinlock variant

With commit 1e6651638b ("slip/slcan: added locking in wakeup function") a
formerly missing locking was added to slip.c and slcan.c by Andre Naujoks.

Alexander Stein contributed the fix 4036aa4799 ("can: slcan: Fix spinlock
variant") as the kernel lock debugging advised to use spin_lock_bh() instead
of just using spin_lock().

This fix has to be applied to the same code section in slip.c for the same
reason too.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/slip/slip.c