Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3563245pxp; Wed, 23 Mar 2022 00:49:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd0UjF+rdI4lM6IH6CvOBM8AnfhgT1R0THQti7Jix/xQmuGB+Sqw1uokVKgmumN217lbkn X-Received: by 2002:a17:903:244d:b0:154:3772:6b32 with SMTP id l13-20020a170903244d00b0015437726b32mr18892591pls.70.1648021757200; Wed, 23 Mar 2022 00:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648021757; cv=none; d=google.com; s=arc-20160816; b=0eqm8zjVLVajq2K94QB6a4nQYSjBFB2pV23iYerWqzInpJ1wU5dvg/bZDydZRjIaC/ tDXzmPzMFwsvDbYKzHuShHxQGyCM31KBuLJRLcMR9yaOxdwSBpuKbtJWn5NHVEy66cTJ Qr/wg9fQpQq0s+A4IBqAXbz8uyF7JbgrNUzIcxKw3LbCLs7xouv0DQkpBEEJrZaZwT6P hBKUynQsaaaJQnmfa/jK5QPL16DBVsuucpPCZt2bXulm409iQSo5Aj5uQQ8sC2vmMenJ FS/tUnHse1SGsvOcuzScw0+4aIpJQgssYUSrnIAPhDjHC78CL6iGcaNciGY3eXvS5Z1M iqGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=brWQyve1cwBxbO9YYEvlZgJ1DQUXQhjoTN/PJlclfoo=; b=IzFNg4ZBwOXDTYbt78/+NeSeWfL9KtcE+HivawXvydCbHpYk9AxxK0MU87brWPmp7e lStcNLUTqPg5b4t4oYIwoYtQodEs8qjHAiyvamNrsgYAPQH0piBtFk7pavyKajD0xhpF IZSquNhDNoCE1dBkAQGHAoYqnGy9VnrUCdazmUorXDA9fjgPgInGa0RZB8qDY+ePHKce 8oAaXJgxOk8s4gZhnYdmf1aE9BRhI8Q+OrStzYdhbSzik+xJVK+287ZAdgx4ec0xXbqd Pgv9Is4WudZxyizPEFsrWf0EYUL1tzPnsz7EtsjOYnCdYt0YfnbLuBWBDfkI2PyIKiGh 6Brg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a63d34f000000b003816043effesi18232055pgi.499.2022.03.23.00.49.04; Wed, 23 Mar 2022 00:49:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238552AbiCVW6l (ORCPT + 99 others); Tue, 22 Mar 2022 18:58:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232036AbiCVW6k (ORCPT ); Tue, 22 Mar 2022 18:58:40 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7389A5E15D for ; Tue, 22 Mar 2022 15:57:07 -0700 (PDT) X-UUID: 929a4578d44d469d9c90fe63c57af886-20220323 X-UUID: 929a4578d44d469d9c90fe63c57af886-20220323 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1296627398; Wed, 23 Mar 2022 06:57:02 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Wed, 23 Mar 2022 06:57:00 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 23 Mar 2022 06:57:00 +0800 From: Miles Chen To: CC: , , , Subject: Re: [PATCH] Bluetooth: mt7921s: Fix a wrong judgment in btmtksdio_get_codec_config_data() Date: Wed, 23 Mar 2022 06:57:00 +0800 Message-ID: <20220322225700.16125-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220322023630.1239271-1-liaoyu15@huawei.com> References: <20220322023630.1239271-1-liaoyu15@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,MAY_BE_FORGED, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yu, >Since ven_data is a double pointer, it should be *ven_data here. > >Fixes: f41b91fa1783 ("Bluetooth: mt7921s: Add .btmtk_get_codec_config_data") >Signed-off-by: Yu Liao >--- > drivers/bluetooth/btmtksdio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/drivers/bluetooth/btmtksdio.c b/drivers/bluetooth/btmtksdio.c >index f3dc5881fff7..b6d77e04240c 100644 >--- a/drivers/bluetooth/btmtksdio.c >+++ b/drivers/bluetooth/btmtksdio.c >@@ -961,7 +961,7 @@ static int btmtksdio_get_codec_config_data(struct hci_dev *hdev, > } > > *ven_data = kmalloc(sizeof(__u8), GFP_KERNEL); >- if (!ven_data) { >+ if (!*ven_data) { > err = -ENOMEM; > goto error; > } Thanks for fixing this. Reviewed-by: Miles Chen