can: slcan: Fix spinlock variant
authorAlexander Stein <alexander.stein@systec-electronic.com>
Tue, 15 Apr 2014 14:51:04 +0000 (16:51 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Apr 2014 20:32:41 +0000 (22:32 +0200)
commit367525c8c20a34560afe1d0c7cca52a44ccd62e9
treea3b6a6a27106b2776af034c87b4d0f2bc2c6ec42
parentd482443244b820f03a5a07d1bca6a0f5e2b4804c
can: slcan: Fix spinlock variant

slc_xmit is called within softirq context and locks sl->lock, but
slcan_write_wakeup is not softirq context, so we need to use
spin_[un]lock_bh!
Detected using kernel lock debugging mechanism.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/slcan.c