From: Gustavo Padovan Date: Mon, 21 Oct 2013 16:21:40 +0000 (-0200) Subject: Bluetooth: Remove socket lock from l2cap_state_change() X-Git-Tag: v3.13-rc1~105^2~23^2^2~4^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f93fa2732313ca31ebdc68fd2d5b67fd1d363b42;p=pandora-kernel.git Bluetooth: Remove socket lock from l2cap_state_change() This simplify and make safer the state change handling inside l2cap_core.c. we got rid of __l2cap_state_change(). And l2cap_state_change() doesn't lock the socket anymore, instead the socket is locked inside the ops callback for state change in l2cap_sock.c. It makes the code safer because in some we were using a unlocked version, and now we are calls to l2cap_state_change(), when dealing with sockets, use the locked version. Signed-off-by: Gustavo Padovan Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed