]> 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)
commitdadbe8b2431b8ce2a298f0728ea6a5ea6f03c36d
tree6717b36b0125f70df78388c73ab95c26b81fb60f
parent4d8a95bd4db5d7ed6f1e6ffc5ab67ae70770ec4c
slip: fix spinlock variant

With commit 4de56f5d5c ("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 6abd239a99 ("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