From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AFB80C0015E for ; Wed, 12 Jul 2023 15:53:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233642AbjGLPxr (ORCPT ); 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. 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--