Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp259031lqe; Wed, 10 Apr 2024 00:49:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUoUSX5djIYnfYT/ZNSDobNn0SWdJeKRKC9P9mSilbsAEUbvSNRAxy6i3YUYi4qfZX1xPoH60pFsZgemV+r4qe4SS45xtZBokxIgIXckQ== X-Google-Smtp-Source: AGHT+IGhQG5r/R9ZD7Yq/w5IjKVfBj90/gZWA6Sc7fHDqKqa+sTS0OjQjveiG5TiVCn4/IcSK1Jh X-Received: by 2002:aa7:88d3:0:b0:6e6:8df5:f77a with SMTP id k19-20020aa788d3000000b006e68df5f77amr2011553pff.31.1712735384829; Wed, 10 Apr 2024 00:49:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712735384; cv=pass; d=google.com; s=arc-20160816; b=EWR2fN08r9dfjwi8/r7yLng8fKIY8vDlNirCWTc/jpc6MZW7caMtvEGES58dWReG89 Sbl9fwjFUjGmMlQQ7xlFMmYQuA37nd0rNP/qlMAIr432Rka0dZWesmQ1hi1qgjgsiLJN V2XkLLx0EZjra36DKNSuV7vlsK1mvB73RFOjxDrK6oCn24JC4qd3ZtOfOFMd2r6ZgaJL 8oDyu3JouBKCxm27HJdaphREAcgFEpRCf4GlbX/qfzW7AHDmAGY4YBD9hG0j8h1zTh9c AUHaVdxrmpFhI9103Qa1jSkL02I0vxBuM4mlM8v3IgHBeUtKGy36De8kVjHtin9xUHKk uSTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=RZ6OZNsef9UTX//8cd2rmW+Q6ye9U9zSLVJ9O0db3fk=; fh=aZfR5YSFISY32Oi9C96GHuHzU6Vg3tZeBKoYnD+6/t0=; b=feRzfRMiYEUoOqLw+HiZDBxj35ADgDnaMTVbdu9ZkbcpkiqSkkEjvW/VLyURw9SBaG vxKLcrZ/Mi7qlO/oby9P1WikdNSFqozMbhoE6i4SEEd5hBcvjfj1lWyc81qbL9r33VcG rhfM1Bdtc4ByWT/BOg4DuKR2e3Sx6VWBJheg9D4Ys32nvj1xgEMz45EmG4UC7X7lcmls I7qer9zASOBEs93AP9i9t/in0uhj74f3Zvm226O5GINXerq+qOIXYMWyr9zxixNMhqih wdtQGYswoIfVj2dInVFOBRfNaU4rZPUAR0G1cbG84FjSjCiz8dgu1LqcOE04miWGWUPw koGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-138102-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138102-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y30-20020aa793de000000b006ea9ca4970esi7036725pff.343.2024.04.10.00.49.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 00:49:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138102-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-138102-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138102-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 87465283FF2 for ; Wed, 10 Apr 2024 07:49:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B14613D52D; Wed, 10 Apr 2024 07:49:15 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92C2013D521 for ; Wed, 10 Apr 2024 07:49:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712735354; cv=none; b=bhVqzo42utSlS3JOWWYdMszr9+Ixe/V7u83puk07vdwbWscRNFWCl27Xf4TbUAPhAv5iKb+ucSI0JvftHV17OR1NVl3+Thdc2mdqnt+laFe0AXXQh+BkSFfXzKtC2M8yIdAagE4eWkA+burSzpWKKBrfdFMHIQFAr3m+5CHVUYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712735354; c=relaxed/simple; bh=tCAYH8SttXspLQuOho8vf/6RSFBLhheQNq/XMrpHCIw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Of7657/mUHrzAgZTezAOqRxJIRcRnHdB+H87wKSYqURKxkNWc9hih3TV5ZHmcinGimszKpIMaJSXZG1zKXwpZmYO9oHtMHy1UXWYFOC/uslNxF+yuMI3vh97+9DymGeUA/qu1oz70O9o6xhU9LB6qVISJgLGz/6eGqc2OGo5CSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.255 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4VDvz164k0z1R5TK; Wed, 10 Apr 2024 15:46:21 +0800 (CST) Received: from kwepemm600013.china.huawei.com (unknown [7.193.23.68]) by mail.maildlp.com (Postfix) with ESMTPS id DF3741403D5; Wed, 10 Apr 2024 15:49:04 +0800 (CST) Received: from huawei.com (10.175.104.67) by kwepemm600013.china.huawei.com (7.193.23.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 10 Apr 2024 15:49:04 +0800 From: Zhihao Cheng To: , CC: , Subject: [PATCH 0/2] ubi: Fix resource leaking in error handling path of ubi_init Date: Wed, 10 Apr 2024 15:40:31 +0800 Message-ID: <20240410074033.2523399-1-chengzhihao1@huawei.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600013.china.huawei.com (7.193.23.68) Zhihao Cheng (2): ubi: ubi_init: Fix missed debugfs cleanup in error handling path ubi: ubi_init: Fix missed ubiblock cleanup in error handling path drivers/mtd/ubi/build.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- 2.39.2