]> git.karo-electronics.de Git - linux-beck.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)
commitddcde142bed44490e338ed1124cb149976d355bb
tree6717b36b0125f70df78388c73ab95c26b81fb60f
parentdf6d14ce98627835f8a518d72f0450b850cbe847
slip: fix spinlock variant

With commit cc9fa74e2a ("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 367525c8c2 ("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