From: Johan Hedberg Date: Sun, 17 Aug 2014 21:41:44 +0000 (+0300) Subject: Bluetooth: Ignore incoming data after initiating disconnection X-Git-Tag: fixes-against-v3.18-rc2~144^2~144^2~138 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f94b665dcf15324f5ac8aa639e47be0829b6409d;p=pandora-kernel.git Bluetooth: Ignore incoming data after initiating disconnection When hci_chan_del is called the disconnection routines get scheduled through a workqueue. If there's any incoming ACL data before the routines get executed there's a chance that a new hci_chan is created and the disconnection never happens. This patch adds a new hci_conn flag to indicate that we're in the process of driving the connection down. We set the flag in hci_chan_del and check for it in hci_chan_create so that no new channels are created for the same connection. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed