]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: check for already existent channel before create new one
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 28 May 2012 01:27:58 +0000 (22:27 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:11 +0000 (06:34 +0300)
commit0996b3e94726c95c152080fed8be74a1fc422131
tree3d09f8d4f15569d4be0a5ef607fe70742a378953
parent9a998689287706309c53b61ca53b6e02a4d5cabd
Bluetooth: check for already existent channel before create new one

Move this check to before the channel time creation simplifies the code
and avoid memory allocation if the channel already exist.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Acked-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c