]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Check if mode is supported on getsockopt
authorJoão Paulo Rechi Vita <jprvita@profusion.mobi>
Sat, 1 May 2010 19:15:42 +0000 (16:15 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 May 2010 07:28:51 +0000 (09:28 +0200)
commitb61be2312233921555d6c162da9c1c332590f8b7
treec0d3012f5fb96a05ed05033270a1fcf4be1c4555
parente296f927d9f19930cb83b2a5e6eb0d2ae3cdb57e
Bluetooth: Check if mode is supported on getsockopt

Add this check to getsockopt makes possible to fail early instead of
waiting until listen / connect.

Signed-off-by: João Paulo Rechi Vita <jprvita@profusion.mobi>
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c