]> 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)
commit4e65cf2adb1e1107f3b25c13b5e2114d71bd660e
tree3d09f8d4f15569d4be0a5ef607fe70742a378953
parent38b334d12cbfe07dc9075ae5e58c36a53c68a56a
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