From: Gustavo Padovan Date: Mon, 21 Oct 2013 16:21:39 +0000 (-0200) Subject: Bluetooth: Hold socket in defer callback in L2CAP socket X-Git-Tag: v3.13-rc1~105^2~23^2^2~4^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acdcabf532908fbefbea294fcad2e3989d1dc036;p=pandora-kernel.git Bluetooth: Hold socket in defer callback in L2CAP socket In both places that we use the defer callback the socket lock is held for a indirect sk access inside __l2cap_change_state() and chan->ops->defer(), all the rest of the code between lock_sock() and release_sock() is already protected by the channel lock and won't be affected by this change. We now use l2cap_change_state(), the locked version of the change state function, and the defer callback does the locking itself now. This does not affect other uses of the defer callback. Signed-off-by: Gustavo Padovan Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed