]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: dtl1: Fix memleak in probe()
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 7 Jan 2012 14:19:41 +0000 (15:19 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:22 +0000 (17:01 +0200)
commit5a0b8159e1c65ce25382d3f5189b6a462422f065
treec981287a0ab7c5f9920ff6b8d3ebf0442232f05f
parentf5fd5baee39fe941bd73973c63990d153184e3a1
Bluetooth: dtl1: Fix memleak in probe()

We currently leak the driver info structure if dtl1_config fails. If we add a
kfree() to dtl1_release to fix this, then dtl1_release and dtl1_detach are
identical so this merges both functions.

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>
drivers/bluetooth/dtl1_cs.c