]> Git Repo - linux.git/commit
can: slcan: Fix spinlock variant
authorAlexander Stein <[email protected]>
Tue, 15 Apr 2014 14:51:04 +0000 (16:51 +0200)
committerMarc Kleine-Budde <[email protected]>
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 <[email protected]>
Acked-by: Oliver Hartkopp <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
drivers/net/can/slcan.c
This page took 0.052875 seconds and 4 git commands to generate.