Bluetooth: Validate PSM values in calls to connect() and bind()
authorMat Martineau <mathewm@codeaurora.org>
Wed, 8 Sep 2010 17:05:26 +0000 (10:05 -0700)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 12 Oct 2010 15:44:51 +0000 (12:44 -0300)
commit0fba2558cbb3fae3a09147b7d6e18a6204204e0e
tree48f5424c4b3530a2b39f5e5bc164db194ae10ae3
parent08601469a5aac8b3453d8aca0b8f9bd8dfdae12c
Bluetooth: Validate PSM values in calls to connect() and bind()

Valid L2CAP PSMs are odd numbers, and the least significant bit of the
most significant byte must be 0.

Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap.c