Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4320000rdh; Tue, 28 Nov 2023 19:32:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQpyicj+PH4LjC+LT6MZa9EDua9zZz+ADW0cLiOYECMfQmYYqm8irap38Ci2ffl5oeerbR X-Received: by 2002:a17:902:ec92:b0:1cf:bf7b:adf2 with SMTP id x18-20020a170902ec9200b001cfbf7badf2mr16734271plg.32.1701228743575; Tue, 28 Nov 2023 19:32:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701228743; cv=none; d=google.com; s=arc-20160816; b=pWOci8FhW1xxtPxLyUOIxyDGWxmWgHZQ/3SBO5/yoAz1n/Eyfh82N2dQoKk37AKQ8L MGWF19zZpblnD2AHO6haAcTHPre3PAFcfh/yfsvkVRXYsNTY/mMB5YzK14uiUgHGV8pQ wKx+1g3CY0SEMhFciZ3P0HH3yJCaYsf1LkWczJiBU9djCArBz6+7uHYANLRi2Bs4Fphx bEt+FR1Rr7cV638j7bhM0+V9XUjEc9mxgnJNT2xhV6xfUgJPElb8RLvjZObw6ncuRqTN 5+LY86HZhM53ibSOvVzrLNsqjbs11cQsG6VWvdv78SyVHXgFu6BA26bBzLcpXkRidxrD jDgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=NPjy6jG0UyL7kbTRg+ris1ISh5T5ArPtyY9uhXCzpkg=; fh=kJjMk0/6LQRRTHGu9HWPuWx6mZScBwsmtAc6q71Nc6s=; b=Cs5q6fA6N3EiXhiKxK9cJd8iT/Yj6clxRXA4gaPxUmgsWEKdUqvijZ5M+pZ8CL0ZlM BKzowXXAZbgBn7sVdsHbYn2Bd/HGVH0ujB8erkY++pBLCbJHzYG5CjK6qg4GKogGsn2N Dfk2MISIlU5tWHwmojDTZCdGlIeJ/v+3000D4KzgYAuFIy0Ncoj/uDrDdMoVp8xFyEjK lvM5UPoeplCy637aP3y8P+o9rZ38D/ssBQTyU8wP2rwn2ENcZpBx5gcrBjB+tX4hrv+U GcAKG8ztVTEQ0azac1STTEMkrPDRtpRTnSmBTHu6NuRgmG7fJX+/AtUi4N7ckn2KfR5A 9krg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id o12-20020a170902d4cc00b001cfc0272b48si8202920plg.103.2023.11.28.19.32.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 19:32:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 6F1E580A5F1F; Tue, 28 Nov 2023 19:32:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230443AbjK2Dbz (ORCPT + 99 others); Tue, 28 Nov 2023 22:31:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229924AbjK2Dby (ORCPT ); Tue, 28 Nov 2023 22:31:54 -0500 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 307221AD; Tue, 28 Nov 2023 19:32:00 -0800 (PST) X-UUID: e55f3d86a61743f49a2c513ff5a2c083-20231129 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.33,REQID:51b088d5-7b57-494f-9d68-1c6afe0d940c,IP:10, URL:0,TC:0,Content:0,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:-5 X-CID-INFO: VERSION:1.1.33,REQID:51b088d5-7b57-494f-9d68-1c6afe0d940c,IP:10,UR L:0,TC:0,Content:0,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:364b77b,CLOUDID:12679960-c89d-4129-91cb-8ebfae4653fc,B ulkID:2311291131566H9M43EO,BulkQuantity:0,Recheck:0,SF:44|64|66|38|24|17|1 9|102,TC:nil,Content:0,EDM:-3,IP:-2,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil ,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI,TF_CID_SPAM_SNR X-UUID: e55f3d86a61743f49a2c513ff5a2c083-20231129 Received: from mail.kylinos.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 816927675; Wed, 29 Nov 2023 11:31:53 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id 1B55EE0080FF; Wed, 29 Nov 2023 11:31:53 +0800 (CST) X-ns-mid: postfix-6566B0A9-53082935 Received: from [172.20.12.156] (unknown [172.20.12.156]) by mail.kylinos.cn (NSMail) with ESMTPA id E0382E0080FF; Wed, 29 Nov 2023 11:31:47 +0800 (CST) Message-ID: <328ad7a1-7c54-4028-ae79-eb25c8c7399b@kylinos.cn> Date: Wed, 29 Nov 2023 11:31:47 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ksmbd: initialize ar to NULL Content-Language: en-US To: linkinjeon@kernel.org, sfrench@samba.org Cc: senozhatsky@chromium.org, tom@talpey.com, linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231120023950.667246-1-zhouzongmin@kylinos.cn> From: Zongmin Zhou In-Reply-To: <20231120023950.667246-1-zhouzongmin@kylinos.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 28 Nov 2023 19:32:19 -0800 (PST) Friendly ping. I think this patch was forgotten. Best regards! On 2023/11/20 10:39, Zongmin Zhou wrote: > Initialize ar to NULL to avoid the case of aux_size will be false, > and kfree(ar) without ar been initialized will be unsafe. > But kfree(NULL) is safe. > > Signed-off-by: Zongmin Zhou > Acked-by: Namjae Jeon > --- > fs/smb/server/ksmbd_work.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/smb/server/ksmbd_work.c b/fs/smb/server/ksmbd_work.c > index 44bce4c56daf..2510b9f3c8c1 100644 > --- a/fs/smb/server/ksmbd_work.c > +++ b/fs/smb/server/ksmbd_work.c > @@ -106,7 +106,7 @@ static inline void __ksmbd_iov_pin(struct ksmbd_work *work, void *ib, > static int __ksmbd_iov_pin_rsp(struct ksmbd_work *work, void *ib, int len, > void *aux_buf, unsigned int aux_size) > { > - struct aux_read *ar; > + struct aux_read *ar = NULL; > int need_iov_cnt = 1; > > if (aux_size) {