Message ID | 20230601072322.486-1-duminjie@vivo.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-wireless-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1EC9DC77B7A for <linux-wireless@archiver.kernel.org>; Thu, 1 Jun 2023 07:23:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230387AbjFAHXp (ORCPT <rfc822;linux-wireless@archiver.kernel.org>); Thu, 1 Jun 2023 03:23:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbjFAHXn (ORCPT <rfc822;linux-wireless@vger.kernel.org>); Thu, 1 Jun 2023 03:23:43 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2092.outbound.protection.outlook.com [40.107.117.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27AA59F; Thu, 1 Jun 2023 00:23:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y1VTqbyvL36F6qLpx11UfMww/PJA0a52oF8T4CuSm6r4WQ4Jd8oNJ/zkfg8IbcmxRm1lh3FMNOUtJY4Kdwxaupaq5RZotduAV994PTfXtDH6mRnoG48jMev462M7YIcO5Pgnqug0Mu0Cc+Ndj6JzaDDZujLVpiIK2t5gvpoLnmSGdyjS4MI8V5zupS9k+/oZFPNz5FX7cYPCMomgQKd7D3QYjvkw68CiuSrjkbA2xoa66q8WKjt7VVzy/oZAw947b+gvNl27TGlO2mqIYBVAyRXns/vRk+TCOUihwXH++IgbXXrNgnjYcq6HKM0oqMBb2kY47w223aJWEyiy7QnblQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=l88uN5ZWvRDy9NX14dWCrtkPNdYCMJoWJ8b15qx0zmM=; b=f6Nk7CUlHyeJ7LXH32YOqUMqsi0sN97l99TdKQjaz5R5Of5zu4QvStDbGfjxndWen7nkwN2RISCqyGzxJ2ZJCQ3R+1KoNigkcpTVyDFdvwtfdHQ5gIVKPtqOYmuoqd/rIr6tN7ZOEAt9YbRy/Q0cxE+cgyu3mRrHm7Kx5+0Cb0x237f11lrSCR1Gj//Lh2yEI+S9CMY/NbnTvHfFzuf2DEQoGGzcw5+jzqbjIGkB/AuuZeyXYI1HTYbf93kxGjVP04Vq1RDgZqnfUT7uO83LgGsnNSl4Yi3Z+W3gav9o3Q9nItEFA3U94jeXMAaJ7kEukNVvKwuoyaHE0BfBBhQK9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l88uN5ZWvRDy9NX14dWCrtkPNdYCMJoWJ8b15qx0zmM=; b=Ad4deVhIzpPLjxObwwIpJg6lCqur2oMQosPsoeOho0NdqM67uMvQKgsCPR8vN/DqPVRAUsWbgvLXIE1NcXCoPQr7PQK6p/KQxxt3pGMdLenw//dO8coKAsG7bO0dIi3+PF7lPWaMUVbjGO+XpmCGGl+BMWjjGcU+f1EYtTh6690jftlVr5TKOkqhbzFteQzVKyvo+EqtX+6+66zmQJFX0O71/MyjcjQywrwhQfFo+uixMW9AFj7SNg0PzM4k6iEPQFWr1DNlfehWL9lAR4cjv8soF+T9ZnPXpVv2RAvU//rgSI+7nF38fy369odphbGLDm3yrbGQ5HO2I6/4QuBQaQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from TYZPR06MB4111.apcprd06.prod.outlook.com (2603:1096:400:4::10) by JH0PR06MB6344.apcprd06.prod.outlook.com (2603:1096:990:17::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.22; Thu, 1 Jun 2023 07:23:34 +0000 Received: from TYZPR06MB4111.apcprd06.prod.outlook.com ([fe80::77d5:71a6:5a61:f1ed]) by TYZPR06MB4111.apcprd06.prod.outlook.com ([fe80::77d5:71a6:5a61:f1ed%7]) with mapi id 15.20.6433.024; Thu, 1 Jun 2023 07:23:33 +0000 From: Minjie Du <duminjie@vivo.com> To: pkshih@realtek.com, kvalo@kernel.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Minjie Du <duminjie@vivo.com> Subject: [PATCH v1] drivers: fix the parameter bin reference preceded by free Date: Thu, 1 Jun 2023 15:23:22 +0800 Message-Id: <20230601072322.486-1-duminjie@vivo.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-ClientProxiedBy: SGAP274CA0016.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::28) To TYZPR06MB4111.apcprd06.prod.outlook.com (2603:1096:400:4::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR06MB4111:EE_|JH0PR06MB6344:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b6f9d59-5144-4eeb-1b16-08db62711b98 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M6L5LQ59ZunK0yA+HWWXevNsPOO4+7oQTRgYYCkH0m2u3GVLSED9EOnYbvNMnaH1JFY/kZoSgsXA15LtaGOza/QYItao0IinN6PjsblcF0F4getOdGm2J3y5Ziry+u2BCS86o8+6hCUH+9tds7rMtzpVV+YFclDP1/RUbj5kL9r9qEN5u8fByHTUhBjpDTU4+9FCVpam9IM2YCeMw3banejjj2FWjszHXjQ3MJ27O8Hf5vwLi8NOVyiP5WQWiaidHgLJy+QtDNNFCxuneGf1rzi/4Mbp56klnhmqFNlgYtQ7Mtwx2Oc0a0qi9sY3fibz5BgtVxGi/j0aqga8D0X9mKDmgteQ9ENL3mfytsZyFUADLA33773lo0hnrCci03PcMENnMln+aBldLrRfjb4EOfTjEdfpXOo7tAGmLMmP2hYfnDt+hb/9CG030rKPqua4YjnLTqVuqOdHYVqQzCIs3pV+v/E1wip4U0G6YDJIdZ8x7vD7puQmmDZvctJc1dqzkDqsN+JxHGmSs1yWaQVbXcmIclpfWlu5pKhe/kmWzJjg/jc1tjdSzgNuyLUpQmE4GjQUgbLeq/9LdwFyaBXtZMRO20/P5lUWQBSRK/aNvyXt/9NMaTVYgCC3Svce9KE0 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR06MB4111.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(376002)(366004)(346002)(396003)(39860400002)(451199021)(8936002)(83380400001)(186003)(2616005)(6666004)(66556008)(66946007)(316002)(66476007)(478600001)(6486002)(2906002)(5660300002)(52116002)(26005)(8676002)(1076003)(6512007)(6506007)(107886003)(41300700001)(4326008)(38350700002)(36756003)(38100700002)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xuXRfkNGl0rRz5fegu+S03z4YFyxxloAXuuC4Xh8RPtD795BH98Fj20rR+T4+MaL1ASYgfhQ2wFeYG2iHXsB3C4A/d4btYyVkPA8k2JpZgrFApJNbzTW/jTAeicMJUI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6u6v3hiX3B5hWAZhgCbSb+xVaU5gcU2R1KEsl1oyKV3fflOa99IytKrAmU3zk9TxuKGivh+BUZ6E3CEimdYd6QioVLWaCvw2DdnZ6MI/83ajQK9Skrs2l0+jbTo+WI61pKgUDTzzn6+cmfkCna2tLAzvc4iOEdaaIV12cmveiJfkwt2m7bEqGFDLRWkKU1u2k8cZXOeSwXCca5/WCCEX8ByqMpxJgzGKZBzA9myJCF6bst30NmBr9rbJy3qaGHsPvVO6do0GCyWgWb8CKgyHegMiskvUay9PUuiGzVZDXzJZvBNNXYoJ3vP8SA0Njfv1VZ+nOMqDPQOoDYFqndtFP+PE6I30t6xRFUx+TtbOSXi X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b6f9d59-5144-4eeb-1b16-08db62711b98 X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB4111.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2023 07:23:33.9012 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8V7WKDa2tmdEyQrSeVMnnoU0WtJaYlgrjtHBSmsuEogi+CX4QV4qcLxbBm2SPSOtCdViCAV6XSqUG9Cl+qfr2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6344 Precedence: bulk List-ID: <linux-wireless.vger.kernel.org> X-Mailing-List: linux-wireless@vger.kernel.org |
Series |
[v1] drivers: fix the parameter bin reference preceded by free
|
expand
|
diff --git a/drivers/net/wireless/realtek/rtw89/debug.c b/drivers/net/wireless/realtek/rtw89/debug.c index 6f418f14ec3f..4541b4d48e69 100644 --- a/drivers/net/wireless/realtek/rtw89/debug.c +++ b/drivers/net/wireless/realtek/rtw89/debug.c @@ -2982,6 +2982,7 @@ static u8 *rtw89_hex2bin_user(struct rtw89_dev *rtwdev, if (hex2bin(bin, buf, num)) { rtw89_info(rtwdev, "valid format: H1H2H3...\n"); kfree(bin); + bin = NULL; err = -EINVAL; }
We assign the variable bin to NULL, fix variable bin reference preceded by free. Signed-off-by: Minjie Du <duminjie@vivo.com> --- drivers/net/wireless/realtek/rtw89/debug.c | 1 + 1 file changed, 1 insertion(+) -- 2.25.1