Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp215114pxj; Tue, 18 May 2021 01:30:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyypL6UKSZFmwkfnoe+qHF7gX+wCe7QCVBo29fGB0HbkcDfzSMaP8/Nu1PEqOWbjjxLNNYE X-Received: by 2002:a5d:8481:: with SMTP id t1mr3413631iom.39.1621326613253; Tue, 18 May 2021 01:30:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621326613; cv=none; d=google.com; s=arc-20160816; b=O+5pt8bK7A45lcF36TkDi6cnkCKG4Uoy5AW7MBQIbU83fY2VmUdZrj/sRlPbFOfhns ESGBFdQL68OjJFyfydD7nqy2T/P59yhh4JfFhUyoTmVKZM4boWSCYYNxV/TLLhScXgaT 7dlQOo+wgcb3n6yDT1fL/sby86qSRex3IgLFrcK1i64OdRkik864FglUMF4mCYlcRitr 1LQ/6pz6ulG2ZJOHsGk9ZoIz839f91sZhma6G1EPpJJLwZbb7GxogJTC0d5HwyO+6Hwg CaBI2FqeEmVs5yLoCyyHU16ct3mGHgfbzzufpK33dtsyASYMR8ae9yn7D+nPRQo2eP9N mVeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tWDuIwRuv0KyshXkRJeMPKpQnA/PGfRpf+7jAcPAlRM=; b=ljN5bmT+2GKiMGjMYQiqdS65YDE/+l2YDTEHOKYCSB1QMUyI332qv/yfh44nqb5ZKY /375zjY89nVwtVaXAmm3R75wxBNH3etpIT6E6bN6aNNcSxhoEr3gwiUuk3tzZoRS8duq 5OZOTVoTnrK66AjYce/Z+5DVKDRzPXRXkndSe0utok2nW/vRZ6peKeV7FwO4Z3sfJObq ynibVOrppkxZjjTysiz+P+cKMB9120HIqnkXxTdHjYVgRnal3HQc380tlEnZkXqDGTAv LLUb2E+wd6WMMdtSc6+pdl1xNkhbO1pjizkSO/JChk/T/nJeevt1lpHBVxRMqp32LdhJ bUWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=msj+zDKb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si15027847ilh.23.2021.05.18.01.29.59; Tue, 18 May 2021 01:30:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=msj+zDKb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241654AbhEQPDD (ORCPT + 99 others); Mon, 17 May 2021 11:03:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:49526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241211AbhEQOxC (ORCPT ); Mon, 17 May 2021 10:53:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 93C8761987; Mon, 17 May 2021 14:24:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261448; bh=AYvKDmHSqkXvGF5u65iwXgvIsvrCbrBW9qOo7GDoyMw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=msj+zDKbtrkYbvVQZtBcvK4PkrRXh+OVpY/W1vZMr28ZTLwlzE59wkNKP36vXZWfA Pwa6pbY9O4VVTs42VW5VDvMpZs518BCPndYF+7uNyKTmU/Z9xh2AxoZJDjfdqf1xMQ kKASPNgqkomy0twy0eDg8d2X6xc5B+ih0dqD8y+I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ayush Garg , Marcel Holtmann , Sasha Levin Subject: [PATCH 5.10 021/289] Bluetooth: Fix incorrect status handling in LE PHY UPDATE event Date: Mon, 17 May 2021 15:59:06 +0200 Message-Id: <20210517140305.893756088@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ayush Garg [ Upstream commit 87df8bcccd2cede62dfb97dc3d4ca1fe66cb4f83 ] Skip updation of tx and rx PHYs values, when PHY Update event's status is not successful. Signed-off-by: Ayush Garg Signed-off-by: Marcel Holtmann Signed-off-by: Sasha Levin --- net/bluetooth/hci_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index e0a542849735..4676e4b0be2b 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -5897,7 +5897,7 @@ static void hci_le_phy_update_evt(struct hci_dev *hdev, struct sk_buff *skb) BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); - if (!ev->status) + if (ev->status) return; hci_dev_lock(hdev); -- 2.30.2