Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp48699rwp; Wed, 12 Jul 2023 09:29:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlHCdeKP3ycY1TtiSBa4wio6GVUkt9e25mhXzGVWidZ+mb7yVM8qHSZ+EHptZ8NtKUP/nonL X-Received: by 2002:a05:6a00:23d3:b0:67f:6226:58ac with SMTP id g19-20020a056a0023d300b0067f622658acmr17359743pfc.14.1689179378580; Wed, 12 Jul 2023 09:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689179378; cv=none; d=google.com; s=arc-20160816; b=Dy5xz3ARE3qw9bFObaKX+l9xAPQZCpaoCdo8pEey15fIB0UfiZuMgDae1SBX2J7+wN tVP1RHbv0N6gNZy5kmBuIYs1DgEirzJbLVRIhPBWfJhVzce+YjfMLw+ZFRmkDlHyQICR dfF/oRlgaw05MkIZfbGS+1H6/KkrBhtCxqxH+rRlcQRY3E8poFOYsa+jlYY/zAK/GHgO GJbNqKRJ60o2PhDi4wQUwomtbTIheG2CEckKXFp0mghq6HDNlMJdOnjYS+UK9HEXT+1d E+c8k+y9CFj3g5XhdhSZfUl+lCVkD7iXAfXjkhI57G01pQ/lnf4al+iAeKrQDhzFzke1 idUA== 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=6i7Y4lQ5kM2O35VpIsKle6TMvXVfixvr1cKHxKvRKXs=; fh=t2sdMdUv+sGDzS3R/gvZBcv5TL6sI+gbhPr4lC4iIZI=; b=ENnSO52ayMKxAjuuzhbqQztH8WDMqxMgQU8tN3Vf155cw7Tq4gKbgg2g+XUs7imQcH +4a/e7cPN1+j+0rOwG6PpWKASPJamx6iSiv8Ybw72dpAH1mg3nZGBNj35K10GFuP6eT2 0+dacYbluZ+qfiCGXX+J26AgCajxNVa602sfsFiaAP/1fkYv6WQyRYu25moAViTl5I/Y jrFUBs3BGtupWoegzmWyq5Njf6bHl5/GZ+iaG+kjAjkDRrv02ff8s8fU2ZVoo10M1fwA QLo8nbnOAY3BVJiO3B/V4NPFEssOGBUVaUMwWyJv+NtBecH7oQrFlPC7hmGqxQvA6rKy h6cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HyLMdkVD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cq6-20020a056a00330600b0064d419dd566si3473002pfb.205.2023.07.12.09.29.26; Wed, 12 Jul 2023 09:29:38 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HyLMdkVD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233660AbjGLPxr (ORCPT + 99 others); Wed, 12 Jul 2023 11:53:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231592AbjGLPxp (ORCPT ); Wed, 12 Jul 2023 11:53:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAE1FFB; Wed, 12 Jul 2023 08:53:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4920A618A8; Wed, 12 Jul 2023 15:53:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7A1CC433C7; Wed, 12 Jul 2023 15:53:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689177223; bh=6i7Y4lQ5kM2O35VpIsKle6TMvXVfixvr1cKHxKvRKXs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HyLMdkVD4F7rnG2PftNw8LtDgCj9djEt4RoA062Zm0ylTmA3goW8U2wX7ja3mzPYk x2suxPH2oKbc9FXrdM7o9Q225rzsjREDDcF9oP14pODw9qeXDHZSwP3nbq2JnTgp3D TloY6w4lO3SCQB7jvcoome1CHVtDSkrapIGdcibHPlqaIFgFhBGg7IvBIAlAbK5bH9 qwuC6d7JlmunWaN9Qn+61xy5oo9ycoLvWdFc4gfB3aYlTxr4ZPtF5erYBPzCX7oZJ/ YsSvs8nCBvDP25GSOs8Ye5v63fmXY/36lpvEe/+qWJb+rs4Zn0e7HldvRrG0ntzE21 UVO5/V6ByRLpg== Date: Wed, 12 Jul 2023 16:53:38 +0100 From: Mark Brown To: Colin Ian King Cc: Ivan Orlov , Jaroslav Kysela , Takashi Iwai , Shuah Khan , alsa-devel@alsa-project.org, linux-kselftest@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] selftests: ALSA: Fix fclose on an already fclosed file pointer Message-ID: <03293bcf-7193-488f-9897-5d96790db55d@sirena.org.uk> References: <20230712140122.457206-1-colin.i.king@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wVNsGP+PGG+ocxCF" Content-Disposition: inline In-Reply-To: <20230712140122.457206-1-colin.i.king@gmail.com> X-Cookie: Dammit Jim, I'm an actor, not a doctor. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --wVNsGP+PGG+ocxCF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jul 12, 2023 at 03:01:22PM +0100, Colin Ian King wrote: > In the case where a sysfs file cannot be opened the error return path > fcloses file pointer fpl, however, fpl has already been closed in the > previous stanza. Fix the double fclose by removing it. Reviewed-by: Mark Brown --wVNsGP+PGG+ocxCF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmSuzIEACgkQJNaLcl1U h9BkeQf+PybKLN8z4YJie7BNQAYU4xABABxmQKw35R+xYMirTAbNdSteSQV3JRql i2Z6aQ2e3HTAgx3tXQ4bgpNQrL4Lcz48rJAfMda0RBKReuIz1LfTW3d9ZoUIU0Lb qYpvkL0Vjf0au1c1nRU6n6eb2ahu7VlJHgChwdB6ueOpBTKLbfpucVvt+dy3X5hJ MbhkO/cs8jcOvyuzHZB6EjPHcPq1vr2zukAsTzmM0xZ5yxGFhewHpS+tPg7RjGwt iC+4rv6dD85ZakRYIO5hYkdQhzIy9pOiuvE82+FGyaLSjnPOlwNAO444OHsWtiQ5 2CIxOWF/BIbsTJt+m2zSXOWZ3X8Mhw== =spEy -----END PGP SIGNATURE----- --wVNsGP+PGG+ocxCF--