From: David Woodhouse Date: Tue, 27 Nov 2012 23:28:36 +0000 (+0000) Subject: br2684: don't send frames on not-ready vcc X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~138^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b89588531f1db93a218c108eee713ff6002a67bf;p=pandora-kernel.git 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 Acked-by: Krzysztof Mazur --- Reading git-diff-tree failed