]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fixed BT ST Channel reg order
authorChen Ganir <chen.ganir@ti.com>
Tue, 30 Aug 2011 10:58:28 +0000 (13:58 +0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Sat, 17 Sep 2011 20:15:25 +0000 (17:15 -0300)
commitef8d4193c62f5ccd8bdd9f2b291ab95e59a84a1d
treef7debac65b011dab76420bd997269e0f3e9b23f0
parentbd1158a01322ac34cd846457e17aa2a5d8b54e74
Bluetooth: Fixed BT ST Channel reg order

Reordered the BT ST channel registration, to make sure that the
event channel is registered before all others. This prevents a
situation where incoming events may cause kernel panic in the ST
driver if the event channel is not yet registered to handle
incoming events.In addition, the deregistration of the channels
was also modified, to be in the reversed order of the registration,
to allow the event channel to be the last one unregistered.

Signed-off-by: Chen Ganir <chen.ganir@ti.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
drivers/bluetooth/btwilink.c