Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp293312rdb; Sat, 19 Aug 2023 01:53:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFffkjUYm1/07tYWD4WC1mp5Utvouss6laIKxddO35HweBKOu+nn6kyAGWcumaJyMHftfKP X-Received: by 2002:a17:902:ec90:b0:1b8:95fc:cfe with SMTP id x16-20020a170902ec9000b001b895fc0cfemr1746764plg.3.1692435222757; Sat, 19 Aug 2023 01:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692435222; cv=none; d=google.com; s=arc-20160816; b=PKxr+t/HXf7lxkWbX9c85dHMwqVVtOF/4AuphsWBcua5MqLIBZdQLIbRhBIGa0I6uV m21AQf/+jSNshxMiDO/w/VszKNpYMIVig0qrguo+Gw6m99t0hrCpZG8m5OBs4ZT7lXxj uCSPYTJlKrgq9evo6zJzfAYgPDzH+wLle6M5cz27gnlsUqe/jPZE0XXax6dgROidlRTy SiRI0oWG8wO7uF2C5RbS4e+kUCJ6bKuhm59s6MCBTkjrZSHyoLHtHRiGts++vty/QJmP Huj6JYjTrXe+pfxJHMMhE6afLeHM+dq2spKhdccOOlBDjZMVvd1kHMZg1ADvr3y/jRP/ J6fQ== 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=ozDTbDzIbC3RcEGwUo2joYHZFv6Qc9bQBy85MBHMkAM=; fh=djanlBTOBJ8v/dZceLXRi6fxPRl0Cvqu1SRKRvj+5FU=; b=Sfv8Mcir4r47CvpPiHtiFKrNY1jPs82d+W7ZWw6P3LPg1z/ToXzM4Zl9h5FET1FBIW B5SNmaJg3UvOLu03Mym3vlCc8PTYh4EusW3sI8+mmcwAIcQ9IWoNhjptQ63IKOfbZt7e 3FloQehlNdoJ/IxhtU54fS1VVXDZRqGg6Va0WWAnKAHtpjzTJmxaJhu1hMwR8uxzzKlq bYgTAqRNHGFfiBzc3gGI98TaP3PxMC2+yNuGi0E2Vsx6TqXQbRlEg34KCRzEHCA/5Y4Y azC8yNxO7vq7p+2hYLN5050Eui/AcimAUHBaJyVTN/BfPP5H6tH2fILbN25f4bWqZ0ZM MVFg== 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g13-20020a170902d1cd00b001b82a4d3ea7si2964897plb.249.2023.08.19.01.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 01:53:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A9ED08A54; Sat, 19 Aug 2023 01:25:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359003AbjHRJTK (ORCPT + 99 others); Fri, 18 Aug 2023 05:19:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359061AbjHRJTD (ORCPT ); Fri, 18 Aug 2023 05:19:03 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A44AF358D for ; Fri, 18 Aug 2023 02:19:01 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R741e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=mengferry@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0Vq1xhCX_1692350334; Received: from j66c13357.sqa.eu95.tbsite.net(mailfrom:mengferry@linux.alibaba.com fp:SMTPD_---0Vq1xhCX_1692350334) by smtp.aliyun-inc.com; Fri, 18 Aug 2023 17:18:58 +0800 From: Ferry Meng To: Richard Weinberger , linux-mtd@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Ferry Meng Subject: [PATCH] ubifs: fix missing error code err Date: Fri, 18 Aug 2023 17:18:48 +0800 Message-Id: <20230818091848.108186-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/ubifs/journal.c:1610 ubifs_jnl_truncate() warn: missing error code 'err' Signed-off-by: Ferry Meng diff --git a/fs/ubifs/journal.c b/fs/ubifs/journal.c index dc52ac0f4a34..ab837b73d4b9 100644 --- a/fs/ubifs/journal.c +++ b/fs/ubifs/journal.c @@ -1607,6 +1607,7 @@ int ubifs_jnl_truncate(struct ubifs_info *c, const struct inode *inode, ubifs_err(c, "bad data node (block %u, inode %lu)", blk, inode->i_ino); ubifs_dump_node(c, dn, dn_size); + err = -EUCLEAN; goto out_free; } -- 2.19.1.6.gb485710b