]> git.karo-electronics.de Git - karo-tx-linux.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)
commit2dfa1003ccd19b435de0be00f6afb7ccdffd7596
tree3d09f8d4f15569d4be0a5ef607fe70742a378953
parent538266929eb7165f92b91eb0f403120fe759e742
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