Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp524311pxb; Wed, 3 Mar 2021 08:51:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyl1bYYqQEt1dYyZhcbCOdCQQLgZdJro6xkjXYfe4pBZPEndAObrVuxbhCHNQGWyQK4COJG X-Received: by 2002:a17:906:fc5:: with SMTP id c5mr25415165ejk.538.1614790310584; Wed, 03 Mar 2021 08:51:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614790310; cv=none; d=google.com; s=arc-20160816; b=ykGEkBAbXhim04v+X5suQ16yjzoYnSxGQBjiMrD7O+SAzgNciq72rpm5bvc4F+T9Rp nwngTTmQHFZIAcD13EaW/61mViYPTHEizV7EbQL9oF5eeydQ8VbNUi8SnCcua7l1Dn4k L5Bu4+UIVnr6Qshb5QYyE61/Nap/raQbh4bXoE7Z5Z4Q+8LQguMwTBfdLDukpcK3So/t 1pTi5RXrwytlt//diDnw8mLfBRTxzhAKfZoYN5ffCh03lafoSWcG/E57mjYFLLGPCRsZ rHg1yHNXrDZ2BT2HcOx3RGqCkCZ9TNZ88KSDn5KgIGA7C3AlHmFBxjEHzqPj6vM53/QS W3ig== 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=UgAZY5NfR54EUgIu0XDxLqxagwTXuMfGbImYtaEtet0=; b=q2edc518oCB/UGI0fKtsaCGaVJqceqjuEtJkF+3MY1kocwkjb3IkAOWkFpBpYjXKW3 j9d8JZg9V+FQ/Obsz7twDhLlbRono9ew+3ovCfonQT3G7WS5fi/QA5AvliwLSwkFelED mVitqDRNk/kMw3MJnxQrSUEOFElhqCIiqaos9b4v5tFUtp+3Pl4Y4aTSoV0gHR7wSP4U k/8RflMX3heR6VZd72/askTplWD0iq2rQj1VA6GUKqfceWPuAzPqtL7saJh01pF8u3M5 0016/cq+yAFJ2Ge3ZF3Tqatw05vT7sXbe1v4c3h+W8G2J+0tni5iWFDK7jVun1cI8HPh SaXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ggPQPCUC; 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 p17si6358036ejr.388.2021.03.03.08.51.23; Wed, 03 Mar 2021 08:51:50 -0800 (PST) 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=ggPQPCUC; 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 S1376282AbhCBAWc (ORCPT + 99 others); Mon, 1 Mar 2021 19:22:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:43168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239855AbhCAS0U (ORCPT ); Mon, 1 Mar 2021 13:26:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2A76C65141; Mon, 1 Mar 2021 17:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614618265; bh=LVJYJzYCHt8LMM75mc3z4G7uDAWBdRJ5QNQtzGSA9Sk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ggPQPCUC79NgBtf5BpO4MAirhA+zgbA/CIXvCPPwt1pxBSOJ0z/BmvQX7/hQn46+V iX5WGKfZKfuYS+1R1mUhX5jLF0X9MiIhG1psaK+se0tHTXO8mEMVT2fKeMRRZNAr5V 45YUHu2u/7z1SY5Gvm63Swq3u7Q24HfDa3p6x68c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christopher William Snowhill , Marcel Holtmann , Sasha Levin Subject: [PATCH 5.10 024/663] Bluetooth: Fix initializing response id after clearing struct Date: Mon, 1 Mar 2021 17:04:32 +0100 Message-Id: <20210301161142.990040724@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@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: Christopher William Snowhill [ Upstream commit a5687c644015a097304a2e47476c0ecab2065734 ] Looks like this was missed when patching the source to clear the structures throughout, causing this one instance to clear the struct after the response id is assigned. Fixes: eddb7732119d ("Bluetooth: A2MP: Fix not initializing all members") Signed-off-by: Christopher William Snowhill Signed-off-by: Marcel Holtmann Signed-off-by: Sasha Levin --- net/bluetooth/a2mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bluetooth/a2mp.c b/net/bluetooth/a2mp.c index da7fd7c8c2dc0..cc26e4c047ad0 100644 --- a/net/bluetooth/a2mp.c +++ b/net/bluetooth/a2mp.c @@ -381,9 +381,9 @@ static int a2mp_getampassoc_req(struct amp_mgr *mgr, struct sk_buff *skb, hdev = hci_dev_get(req->id); if (!hdev || hdev->amp_type == AMP_TYPE_BREDR || tmp) { struct a2mp_amp_assoc_rsp rsp; - rsp.id = req->id; memset(&rsp, 0, sizeof(rsp)); + rsp.id = req->id; if (tmp) { rsp.status = A2MP_STATUS_COLLISION_OCCURED; -- 2.27.0