]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: mgmt: Centralize message length checks
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 1 Mar 2012 20:24:41 +0000 (22:24 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 1 Mar 2012 21:55:58 +0000 (23:55 +0200)
commit0d67253fdf32d0739e4436b78fd2c782c1c49318
treebd767d8adc1d3ab28700335c99d9e55572d0b82c
parenta9c84addc36d514862deb7d4ba17c705f89314ea
Bluetooth: mgmt: Centralize message length checks

This patch moves the command length information into the command handler
table allowing the removal of length checks from the handler functions
and doing the check in a single place before calling the handler
function.

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