Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1053795iob; Fri, 13 May 2022 21:16:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9dJ/sZ5ciFp9oyfkr1CaneAZJzn8hwkQIzw+kBbd6uVuA5UoK0nsgmQXlCpAM9O2YeNN4 X-Received: by 2002:a1c:2c3:0:b0:38f:f280:caa3 with SMTP id 186-20020a1c02c3000000b0038ff280caa3mr7114566wmc.14.1652501790181; Fri, 13 May 2022 21:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652501790; cv=none; d=google.com; s=arc-20160816; b=g85tP78Zovv5xaeTIWkRoeHiQ9fmHRFnVBvm/EcZxB61OwkXm/RpEfHwdaRJhz7xKy smGuTLbOq0K2znRrc5Hgb59UoUmgprTAzNvQhql5LYaK2qA+PpSLtRSYV0LqEptQi74B j8QPUTu4bDQdzWjbUL7gCkZ1kTsYFnWgigTtQVzKoMXfsX6a/OFn/VxVjnvvwzzzbFL9 +e2EgwVRuaYOOE4lHuS8sa5WxiYseUqSjqydhhP7bUpfIS6maXcoeTggkqmA+xh94mZm T/aLRfqjruXJb4zsEM9ayApEx9JKU4DJgrsaR9I+Lp4RSOl7v7ZD90fimRfXRh68MaDU 8Ikg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=r0ky167R/pcsI/y0pomJ9PkIE0seIB+45HKP33Zkakg=; b=tGtcx7qNS2K1o1fWg6Lc2A/HH//niVmZb0O4wkBDCSXKY2TYG+QKm6QGkVaPait6us vUQgKDqQU9d31x6Z+UKQpohbt1KS1jnvy6aux7wJZN40dUTdn6ZmC2Ax3g7NWZM+t2yk xOLNOvbxYn7DQGZc4o73bHXAnprw7nzfakhu2KGxtDtdLmMFD7ql4lFaVU2rLx0KmwdD j3LirbacoQ9RiTFIlDioVXVQgI3bmZg+Y7cFIwudKlyDRFrBCx0zEZeAnDeltVRYZI0C /M7CB5N/Rkg4PX/7FDvt2AnHrm2pzRvW3xkbDzQncqDfMUL4LZHzHvlKvHf8YEzO7rp/ 8Nhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s0nvUTpY; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s19-20020a05600c29d300b00393ed732773si3601625wmd.102.2022.05.13.21.16.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:16:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s0nvUTpY; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8789F2F4150; Fri, 13 May 2022 17:47:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238347AbiEMWAD (ORCPT + 99 others); Fri, 13 May 2022 18:00:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384799AbiEMWAC (ORCPT ); Fri, 13 May 2022 18:00:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 091D84E387; Fri, 13 May 2022 15:00:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9A72460DE3; Fri, 13 May 2022 22:00:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B51F8C34100; Fri, 13 May 2022 21:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652479200; bh=9or3bcCS+phDNhSoucSJa5LZj2NNYNIkPfIS1dsSmy4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=s0nvUTpYk1zVtYoddcOJhYOp76M/RWg1R9jV/CF4DJxjPW7eSUZyHABBUBoqNTpyg RVWnCAxWXoOCnMjf0pyzW1zvnJUjV6Bh5e+hrmBxzNusD/jmysfkC86tD5j+G9LgpI hpCcB0tZ8BEMqi79uP/N6qTpkQqpqyZLFmOyYA3Zwge1f2OgX6s2Qg7bfg/msh7Dx2 kcCb1zrQHdehUzaWNn93F2yjIO8Sji/UCPhaQ4Xitcu74QG0I+MKpILk0GtmFIsdeJ Cufl9ISLi7mV7fJJYdc8uH92O0XtIRrVqYEDTTHPeigBnsCjllXvLO2XVfo6x0kfW3 W1fXrCYiDou4w== Date: Fri, 13 May 2022 14:59:57 -0700 From: Eric Biggers To: Ritesh Harjani Cc: linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Lukas Czerner , Theodore Ts'o , Jaegeuk Kim , Jeff Layton Subject: Re: [PATCH v2 5/7] ext4: fix up test_dummy_encryption handling for new mount API Message-ID: References: <20220501050857.538984-1-ebiggers@kernel.org> <20220501050857.538984-6-ebiggers@kernel.org> <20220513110741.uofbacfs7li4cqio@riteshh-domain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220513110741.uofbacfs7li4cqio@riteshh-domain> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-ext4@vger.kernel.org On Fri, May 13, 2022 at 04:37:41PM +0530, Ritesh Harjani wrote: > > @@ -2623,10 +2609,11 @@ static int parse_apply_sb_mount_options(struct super_block *sb, > > if (s_ctx->spec & EXT4_SPEC_JOURNAL_IOPRIO) > > m_ctx->journal_ioprio = s_ctx->journal_ioprio; > > > > - ret = ext4_apply_options(fc, sb); > > + ext4_apply_options(fc, sb); > > + ret = 0; > > > > out_free: > > - kfree(s_ctx); > > + __ext4_fc_free(s_ctx); > > I think we can still call ext4_fc_free(fc) and we don't need __ext4_fc_free(). > Right? > Yes, you're right. I might have missed that fc->fs_private was being set above. I was also a little lazy here; the part below 'out_free:' should be a separate patch since it also fixes a memory leak of s_qf_names. I'll fix that up. - Eric