slcan: Port write_wakeup deadlock fix from slip
authorTyler Hall <tylerwhall@gmail.com>
Mon, 16 Jun 2014 02:23:17 +0000 (22:23 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jul 2014 15:05:59 +0000 (08:05 -0700)
commit49f5947b8a69e5fce9ef98429113fffde4a62b5a
tree7accffbba90c692f996d74549dc7c49377215934
parent9f06f0f45843164eb9ff100c9f4ba430ff2326d5
slcan: Port write_wakeup deadlock fix from slip

[ Upstream commit a8e83b17536aad603fbeae4c460f2da0ee9fe6ed ]

The commit "slip: Fix deadlock in write_wakeup" fixes a deadlock caused
by a change made in both slcan and slip. This is a direct port of that
fix.

Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Cc: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: Andre Naujoks <nautsch2@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/slcan.c