]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita657510fbb835c48db11b3f2673a462d71d6a68f
treeceea6a628b9692f727c1c68439fbe730921d7220
parent567a6fbc5b8eb373c1acd7d5d0a80da64603848c
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