From: Johan Hedberg Date: Mon, 29 Apr 2013 16:35:40 +0000 (+0300) Subject: Bluetooth: Fix duplicate call to l2cap_chan_ready() X-Git-Tag: v3.11-rc1~64^2~78^2^2~23^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f57c0b14ad2ef0628fc6db48cd6c08e0e52c50;p=pandora-kernel.git Bluetooth: Fix duplicate call to l2cap_chan_ready() In l2cap_le_conn_ready() after doing l2cap_chann_add() the LE channel is part of the list which is subsequently iterated in l2cap_conn_ready() in this loop each channel will get l2cap_chan_ready() called which would result in trying to set the channel two times into BT_CONNECTED state. Instead it makes sense to just add the channel but not call chan_ready in l2cap_le_conn_ready, which is what this patch does. Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed