Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp178749rdb; Fri, 18 Aug 2023 19:53:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHprOsJnBjskE2r8gEnp6IlpBwwCXNv09+kDzX7gtvXnJ99kVyepmXmECehv9J/8mJtE+xX X-Received: by 2002:a17:906:cc2:b0:99d:f560:5d3c with SMTP id l2-20020a1709060cc200b0099df5605d3cmr695021ejh.23.1692413624992; Fri, 18 Aug 2023 19:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692413624; cv=none; d=google.com; s=arc-20160816; b=KwasM2gYpFsIf2iNghlzwVN4BERLfF2JfE/SV+hgI8N8n/3rxOe7A4ovGf/PAIoUwW Dm7mgg7Mmc58Wy0cIB2HG2vP6jDya5W/Gf4slDZrol/8p8TU64K0zGwnvpYhf4bmmAlw RPbOZslzLsqe/Ar3xa1cnjsTJa3ZZBMI2OHXmgUSXl3Xoet3RvfPN9OglHBZleAp/nao kXlo6MzaDf5woXNMBI0SPLQnwE5sAIWqQdraq0SMJBCNs+oqvokD5LfrsohCnB82EvOO b+JnkU9yEG2KZrDDjhKJNN2Y40qyVhqBzOqJ90tdAiC0q2zI4DYc06CaFKcqehAXz9/S wyKA== 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 :message-id:date:subject:cc:to:from; bh=KoJXFQAB6IbixCGfKzADQ0ggFQsDrPyvVu0hAs4hph0=; fh=E3vxG8o6NhDNiQF8DKkyHMaMVm4hc3s7H8Z2TWAoc4U=; b=LeH1MuXOmVXWWXPapmj6mvYBloV8wXCzRs/wQeLAOJR6uwn/72dHF+kbKU8STj81zn 3RiySB8sQgIUAbzE6fM5RaVffsndQGGB/O+dg579x27oUa4sfT5SdStovumMhWReTI8H BNikYZHpb2P7Thas1SPTtApabXzBbCWRZ+7/sdNFliYvvpH7puRFZBzBSFWb+0aPfw4/ MZXaFb44aSZFhBljaAkecg4KLVWiWTB/ZVq0Hxqr+VSb8y6XfaOac8z2okSMuTnNsiRZ QBOZqlS78kwLtSwy+dExmz8EfaqwjZf1dEvj8mqXtYVQ/CaSGuw//rafRUwPlz5aPYfc 8xiQ== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dk3-20020a170906f0c300b0099bcf4f5e79si2394957ejb.674.2023.08.18.19.53.20; Fri, 18 Aug 2023 19:53:44 -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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358996AbjHRJSE (ORCPT + 99 others); Fri, 18 Aug 2023 05:18:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359029AbjHRJRo (ORCPT ); Fri, 18 Aug 2023 05:17:44 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0DB73AAC for ; Fri, 18 Aug 2023 02:17:40 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R371e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=mengferry@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0Vq1y0ap_1692350254; Received: from j66c13357.sqa.eu95.tbsite.net(mailfrom:mengferry@linux.alibaba.com fp:SMTPD_---0Vq1y0ap_1692350254) by smtp.aliyun-inc.com; Fri, 18 Aug 2023 17:17:37 +0800 From: Ferry Meng To: Konstantin Komarov , ntfs3@lists.linux.dev Cc: LKML , Ferry Meng Subject: [PATCH] ntfs: fix potential uninitialized symbol err Date: Fri, 18 Aug 2023 17:17:15 +0800 Message-Id: <20230818091715.104037-1-mengferry@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham 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 Fix smatch warning: fs/ntfs3/attrib.c:1503 attr_wof_frame_info() error: uninitialized symbol 'err'. Signed-off-by: Ferry Meng diff --git a/fs/ntfs3/attrib.c b/fs/ntfs3/attrib.c index a9d82bbb4729..f027c35c7f5f 100644 --- a/fs/ntfs3/attrib.c +++ b/fs/ntfs3/attrib.c @@ -1372,7 +1372,7 @@ int attr_wof_frame_info(struct ntfs_inode *ni, struct ATTRIB *attr, u8 bytes_per_off; char *addr; struct page *page; - int i, err; + int i, err = 0; __le32 *off32; __le64 *off64; -- 2.19.1.6.gb485710b