diff options
author | David Woodhouse <dwmw2@infradead.org> | 2012-11-28 00:28:36 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-12-02 01:05:14 +0100 |
commit | b89588531f1db93a218c108eee713ff6002a67bf (patch) | |
tree | 074d0b433a381f95325082c8d9f0ba10a835b517 /net/atm/pppoatm.c | |
parent | atm: add release_cb() callback to vcc (diff) | |
download | linux-b89588531f1db93a218c108eee713ff6002a67bf.tar.xz linux-b89588531f1db93a218c108eee713ff6002a67bf.zip |
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>
Diffstat (limited to 'net/atm/pppoatm.c')
0 files changed, 0 insertions, 0 deletions