Return-Path: MIME-Version: 1.0 In-Reply-To: <20170522135042.10921-1-guodong.xu@linaro.org> References: <20170522135042.10921-1-guodong.xu@linaro.org> From: Rob Herring Date: Tue, 23 May 2017 08:45:07 -0500 Message-ID: Subject: Re: [PATCH] Bluetooth: hci_ll: Fix download_firmware() return when __hci_cmd_sync fails To: Guodong Xu Cc: Marcel Holtmann , Gustavo Padovan , Johan Hedberg , "open list:BLUETOOTH DRIVERS" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" List-ID: On Mon, May 22, 2017 at 8:50 AM, Guodong Xu wrote: > When __hci_cmd_sync() fails, download_firmware() should also fail, and > the same error value should be returned as PTR_ERR(skb). > > Without this fix, download_firmware() will return a success when it actually > failed in __hci_cmd_sync(). > > Fixes: 371805522f87 ("bluetooth: hci_uart: add LL protocol serdev driver support") > Signed-off-by: Guodong Xu > --- > drivers/bluetooth/hci_ll.c | 1 + > 1 file changed, 1 insertion(+) Acked-by: Rob Herring