]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Correctly acquire module ref
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 7 Jan 2012 14:47:21 +0000 (15:47 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:24 +0000 (17:01 +0200)
commitdf0ff71cb6c793ba33e2e9301eb30d10bf29c26a
tree6935c5b0b5717ff689a010408d0ae91104c5f01d
parentc759831dfb85776cda4eadd169f5f7d61e5dd1d1
Bluetooth: Correctly acquire module ref

We provide a device-object to other subsystems and we provide our own
release-function. Therefore, the device-object must own a reference to
our module, otherwise the release-function may get deleted before the
device-object does.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_sysfs.c