Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp910624pxj; Thu, 27 May 2021 14:46:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5cwgQAOOsYAta+Zn5PKUetEE4EN344NT3zdmkjY+/eIPNdKLcgI/hdxr2Zhv/CWY01f9z X-Received: by 2002:a92:cc4c:: with SMTP id t12mr4600744ilq.232.1622151992488; Thu, 27 May 2021 14:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622151992; cv=none; d=google.com; s=arc-20160816; b=pFnfRY/kc5cewfbQDHehIln6lRcN93EgI3UQhSF3jWko9iCknCJ1LoIpV6SU2ATKr2 Sx/7xjqgHM6SZQJJdzlL0Ol9YHZsCYt4oRaBDNbZT0gjLDA6i9Fe58u8xhkSuFdLsuQW yWsjK8GqtDbMI5uN187Q/0XuuCTDmAraD8fkrlebEZNvY0uqgUhTpJuYhtIKmZvRIgUR Es3kfNW9fRhXqvKsrJ+xs+H/dkIamL1yIJJjL4xUYzTDn8J6CL8fSY8f8L64N4bKR9+e xS0TzRh4FyKTlaekyhNT87yvOrDVx43J+O9gc2jULeWsZSw/zAwhrcZ5SaZqQJeAyc4p /v3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=3CLtkriL3ajW1vZ5wnGLxWPed9raF7+YSKGQKceT2DQ=; b=Cp0NXkLoaLgG8X7j667fKzzDaII1cI8x0i7sYcfT1Ic+aVQ0NxzbsT9joo8qvNtiNy mVUyDQ/aIo1iNYX69VNbaoOgYZ1azRWFTOtCAOVNCkLUbtqoJzt02V6Dy4GoBTsm346e gvigoSKvn/z7ZVcNrBPKlhyUKuKBQn9rhcxouXjrFmKkU+NKjFYnPx4NgbiJXUJnN+ub ZlN9Q2GjGblDSQxdWOikWywyDx8C24/lAqyInLxFRFv9Mr/oY9CqyQ0fV4Itc9RXBJqz +jKzezaRxznVyU75Tosnxie3R1TKWRiIaaL/moRuVFhve6tNCMXcFH9w1pfdXfZQt62d 4lDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b9si3479440ilj.58.2021.05.27.14.45.49; Thu, 27 May 2021 14:46:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235434AbhE0PMF (ORCPT + 99 others); Thu, 27 May 2021 11:12:05 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:42999 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236831AbhE0PL4 (ORCPT ); Thu, 27 May 2021 11:11:56 -0400 Received: from smtpclient.apple (p4fefc9d6.dip0.t-ipconnect.de [79.239.201.214]) by mail.holtmann.org (Postfix) with ESMTPSA id EBD3CCED34; Thu, 27 May 2021 17:18:13 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: [PATCH V2] Bluetooth: mgmt: Fix the command returns garbage parameter value From: Marcel Holtmann In-Reply-To: <20210526173622.444397-1-hj.tedd.an@gmail.com> Date: Thu, 27 May 2021 17:10:17 +0200 Cc: linux-bluetooth , Tedd Ho-Jeong An Content-Transfer-Encoding: 7bit Message-Id: References: <20210526173622.444397-1-hj.tedd.an@gmail.com> To: Tedd Ho-Jeong An X-Mailer: Apple Mail (2.3654.100.0.2.22) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Tedd, > When the Get Device Flags command fails, it returns the error status > with the parameters filled with the garbage values. Although the > parameters are not used, it is better to fill with zero than the random > values. > > Signed-off-by: Tedd Ho-Jeong An > --- > net/bluetooth/mgmt.c | 2 ++ > 1 file changed, 2 insertions(+) patch has been applied to bluetooth-next tree. Regards Marcel