From: Johan Hedberg Date: Tue, 28 Jan 2014 23:16:51 +0000 (-0800) Subject: Bluetooth: Always use l2cap_chan->psm for returning PSM to user space X-Git-Tag: v3.15-rc1~113^2~159^2^2~130^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7e5e76b6f4c5848ad3093493bdb226c27d8350e;p=pandora-kernel.git Bluetooth: Always use l2cap_chan->psm for returning PSM to user space The l2cap_chan->psm value is always set to a valid value for a connection oriented channel. The l2cap_chan->sport is used for tracking local PSM allocations but will not always have a proper value, such as with connected sockets derived from a listening socket. This patch fixes the sock_getname callback to always use chan->psm when returning address information. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed