From: Johan Hedberg Date: Fri, 8 Aug 2014 06:28:03 +0000 (+0300) Subject: Bluetooth: Call L2CAP teardown callback before clearing chan->conn X-Git-Tag: fixes-against-v3.18-rc2~81^2~133^2~84^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72847ce02180e8a0be1b23ba53ffe437cdb25d6a;p=pandora-kernel.git Bluetooth: Call L2CAP teardown callback before clearing chan->conn L2CAP channel implementations may want to still access the chan->conn pointer. This will particularly be the case for SMP that will want to clear a reference to the SMP channel in the l2cap_conn structure. The only user of the teardown callback so far is l2cap_sock.c and for the code there it makes no difference whether the callback is called before or after clearing the chan->conn pointer. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed