Bluetooth: Check packet FCS earlier
authorGustavo F. Padovan <padovan@profusion.mobi>
Wed, 12 May 2010 01:02:00 +0000 (22:02 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:07 +0000 (10:39 -0700)
commit260000896750690b774d4343294ae5cbff1423e5
tree696f1a945371bb3bd363dd8741eec86b22920e66
parent45d65c46acc39945219eeb3752367ee80ed82799
Bluetooth: Check packet FCS earlier

This way, if FCS is enabled and the packet is corrupted, we just drop it
without read it len, which could be corrupted.

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