Bluetooth: Check the SDU size against the MTU value
authorGustavo F. Padovan <padovan@profusion.mobi>
Sat, 1 May 2010 19:15:40 +0000 (16:15 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 May 2010 07:28:49 +0000 (09:28 +0200)
commit052897ca5019d9157ae09e5e84eee2a9ef5dccc6
treee236a9c5b6559f31c69c9b5e6fa02dbd70294ad6
parent10467e9e9b89272b25b56688bb276d0830e9ab9a
Bluetooth: Check the SDU size against the MTU value

If the SDU size is greater than the MTU something is wrong, so report
an error.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
[jprvita@profusion.mobi: set err to appropriate errno value]
Signed-off-by: João Paulo Rechi Vita <jprvita@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c