David Woodhouse b89588531f br2684: don't send frames on not-ready vcc
Avoid submitting packets to a vcc which is being closed. Things go badly
wrong when the ->pop method gets later called after everything's been
torn down.

Use the ATM socket lock for synchronisation with vcc_destroy_socket(),
which clears the ATM_VF_READY bit under the same lock. Otherwise, we
could end up submitting a packet to the device driver even after its
->ops->close method has been called. And it could call the vcc's ->pop
method after the protocol has been shut down. Which leads to a panic.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Acked-by: Krzysztof Mazur <krzysiek@podlesie.net>
2012-12-02 00:05:14 +00:00
..
2008-06-17 16:20:06 -07:00
2012-03-28 18:30:03 +01:00
2012-12-02 00:05:12 +00:00
2011-11-22 16:15:42 -05:00
2008-01-28 15:00:11 -08:00
2012-06-04 11:45:11 -04:00
2006-12-02 21:32:08 -08:00
2011-07-26 16:49:47 -07:00
2005-04-16 15:20:36 -07:00
2012-08-15 21:36:30 -07:00
2012-08-31 16:14:33 -04:00
2007-02-10 23:19:16 -08:00