]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Check minimum length of SMP packets
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Oct 2013 08:23:08 +0000 (01:23 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 3 Oct 2013 10:06:41 +0000 (13:06 +0300)
commit67548cb2f07c4a662c85366dfa4cfdc9797cd4d3
tree9ff3ad9e3d7b2d746baab526e02385a031a7caf8
parentddeab96e7f4ab61aab6df48799e31bd5e1eca7d4
Bluetooth: Check minimum length of SMP packets

When SMP packets are received, make sure they contain at least 1 byte
header for the opcode. If not, drop the packet and disconnect the link.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/smp.c