From: Marcel Holtmann Date: Mon, 26 Aug 2013 07:20:37 +0000 (-0700) Subject: Bluetooth: Fix handling of getsockname() for HCI sockets X-Git-Tag: v3.13-rc1~105^2~225^2~24^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d4b68b23947e7bdf3f2707e76bd61572c523f6c;p=pandora-kernel.git Bluetooth: Fix handling of getsockname() for HCI sockets The hci_dev check is not protected and so move it into the socket lock. In addition return the HCI channel identifier instead of always 0 channel. Signed-off-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed