]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add instance range check for Add Advertising command
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 19 Nov 2015 15:16:41 +0000 (16:16 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 22 Nov 2015 13:00:16 +0000 (16:00 +0300)
commit00ce5d4e5ed5f24f61f21f2e5335f7651d97d6d2
tree86aed6f06e699f72507270d42aa5c4cc72eae713
parentdce60a703ceb5259d8943687301757b0c242de73
Bluetooth: Add instance range check for Add Advertising command

The instance range check for Add Advertising command is missing. If the
provided instance is out of range an Invalid Parameters error should be
returned. At the moment, the generic Failed error is returned. This
extra check ensures that clear error messages are returned.

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