commit | 5a0b8159e1c65ce25382d3f5189b6a462422f065 | [log] [tgz] |
---|---|---|
author | David Herrmann <dh.herrmann@googlemail.com> | Sat Jan 07 15:19:41 2012 +0100 |
committer | Johan Hedberg <johan.hedberg@intel.com> | Mon Feb 13 17:01:22 2012 +0200 |
tree | c981287a0ab7c5f9920ff6b8d3ebf0442232f05f | |
parent | f5fd5baee39fe941bd73973c63990d153184e3a1 [diff] |
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>