Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3519356pxb; Mon, 1 Mar 2021 12:07:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQszL7RTxK2fzkfgFRY8EQfGW3sKgzTYFyuZMSuwwbh/USMewSWO7spEp7usMDvny/Z8Ur X-Received: by 2002:a05:6402:1754:: with SMTP id v20mr17815857edx.191.1614629221446; Mon, 01 Mar 2021 12:07:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614629221; cv=none; d=google.com; s=arc-20160816; b=GTV91+1wikgi/fjpeoAW9vqOb3WpoxaSoPGdpu1FsMaZYJru71j/uzx4uVkKvnCO2c mU20rKsc8KLWG/kpl5bL275R1ASf0DG4vlJcHK+a1ov7FOokOtfnbGyXXvma8IZjtSOs XucrWXzKW3zOiHf6xcsYVmhbN1MJlPeq5VUYWX4M77jlvjl08bXLnyy6p5F8ZwmBb0Tu 1UG/u4ZLuPmAvqifetZVO5IC4xQRPuo6zHQkhmwx84LEXZPGAln0Lul6HlIeUfJPD9XM oqrC48QZgUBJceKDF672/mNDgdaBt5cZq1BYlDypDKalrRg6rt8XT+hTIwxs/NloxAUx oMxQ== 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=zXhOlzSLEFQq1BDwShQkR1M3QU9XcbNW2WVZ1BB4Z1A=; b=KQxQuNd4uLQcbMkevqbOIB6pGndjyx2IO/zg9NI01jaXt0XISYwO89LMGs0hY8Txs/ R4yT9NqaCZF0KTv8a+YifGYBQMqCsW+Jdl0aljcLjkWt0IaVYii11E2VaX+rl8Y2VZay Hl5O2iOlChzHbf5WILdTudkE+wh/JQcXqfHUFWqlQVPvTfNkPagDvYT4LVEKA18yAZ3j K6yj6G+PtEMtcQ4BKXytJcZH50uRwknTtLUWiHdmhPzEYOBQn8ol/WB6eAmM5FPKVVpn X1SYjL1LpIFTujMDsSRLIL6LFSB4803d5MxCvhZrXJUoAZFZ6mXJWCzO4Ag7qu2gY45Y MP8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CBKawYbT; 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 b1si12242937ejb.401.2021.03.01.12.06.39; Mon, 01 Mar 2021 12:07:01 -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=CBKawYbT; 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 S242696AbhCAUDV (ORCPT + 99 others); Mon, 1 Mar 2021 15:03:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:59156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235681AbhCAQ7G (ORCPT ); Mon, 1 Mar 2021 11:59:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B05B564FE3; Mon, 1 Mar 2021 16:37:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616638; bh=5COGKQzqNg1ljGpM7SbGpPQ1mjsAY9IQdisCKOmFDlA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CBKawYbTdzmsboXdUUv5CczBtVJeEBaFtGE0K0yGIlc+2od1UbPKXwdb/0TP4u0/s eJyYcwLzqK1Ism/1GHut4L7837Bun0HCxHtgMj3PHTmJaexn7blLh9DZN/goyMEOI5 GOgUgjv5DMuSc6M0Duts87izyQ1u61nYtrfLHQOM= 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 4.19 026/247] Bluetooth: Fix initializing response id after clearing struct Date: Mon, 1 Mar 2021 17:10:46 +0100 Message-Id: <20210301161032.977024558@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@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 be9640e9ca006..888813342cfc8 100644 --- a/net/bluetooth/a2mp.c +++ b/net/bluetooth/a2mp.c @@ -388,9 +388,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