Bluetooth: Disabling discoverable with timeout is invalid
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 22 Feb 2012 17:06:34 +0000 (18:06 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:07:00 +0000 (13:07 +0200)
commit24c54a90527ca5b85e7feedde2c779dc056ffddb
tree4c3bf52346cc63742f37e772b3ff22a1b4e96193
parentf51d5b248981d05269e4f83ab8f8ed7ed494fe33
Bluetooth: Disabling discoverable with timeout is invalid

Add one extra sanity check to ensure that the supplied timeout value is
actually valid in this context.

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