commit | 3d44a6fd0775e6215e836423e27f8eedf8c871ea | [log] [tgz] |
---|---|---|
author | Oliver Neukum <oneukum@suse.com> | Thu Nov 14 16:01:18 2019 +0100 |
committer | Marcel Holtmann <marcel@holtmann.org> | Fri Nov 15 09:06:38 2019 +0100 |
tree | a41268f62af815b561cbc0708849cddb2e1aff81 | |
parent | 90bc72b13c08eedf73b7c0bd94ef23c467800c4a [diff] |
Bluetooth: btusb: fix PM leak in error case of setup If setup() fails a reference for runtime PM has already been taken. Proper use of the error handling in btusb_open()is needed. You cannot just return. Fixes: ace31982585a3 ("Bluetooth: btusb: Add setup callback for chip init on USB") Signed-off-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>