Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [PATCH 2/2] Bluetooth: hci_bcm: Close serdev on failure to set power on bcm_open() From: Marcel Holtmann In-Reply-To: <20180121214645.15004-2-hdegoede@redhat.com> Date: Mon, 22 Jan 2018 03:20:41 +0100 Cc: "Gustavo F. Padovan" , Johan Hedberg , Bluez mailing list , linux-serial@vger.kernel.org, ACPI Devel Maling List , Lukas Wunner Message-Id: <52263D7A-47F4-482C-98AA-74094CBCD768@holtmann.org> References: <20180121214645.15004-1-hdegoede@redhat.com> <20180121214645.15004-2-hdegoede@redhat.com> To: Hans de Goede Sender: linux-serial-owner@vger.kernel.org List-ID: Hi Hans, > Commit 8bfa7e1e03ac ("Bluetooth: hci_bcm: Handle errors properly") > introduced error checking for the bcm_gpio_set_power() call in bcm_open() > but the error-path it introduces does not properly call > serdev_device_close() to undo the earlier serdev_device_open(), this > commit fixes this. > > Cc: Lukas Wunner > Fixes: 8bfa7e1e03ac ("Bluetooth: hci_bcm: Handle errors properly") > Signed-off-by: Hans de Goede > --- > drivers/bluetooth/hci_bcm.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) can I get this as 1/2 so I can apply it right away. Regards Marcel