Bluetooth: timer check sk is not owned before freeing
authorAndrei Emeltchenko <andrei.emeltchenko@nokia.com>
Wed, 3 Nov 2010 10:32:45 +0000 (12:32 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 1 Dec 2010 23:04:36 +0000 (21:04 -0200)
commit940a9eea80946b64b96bd8af1fc71b30c602d057
treeceea6a628b9692f727c1c68439fbe730921d7220
parenta49184c229535ebedbb659214db2d4d1d77b7c07
Bluetooth: timer check sk is not owned before freeing

In timer context we might delete l2cap channel used by krfcommd.
The check makes sure that sk is not owned. If sk is owned we
restart timer for HZ/5.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@nokia.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap.c