Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2774213rwa; Mon, 22 Aug 2022 13:34:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR776WUaiGP7bjdKqnqMP+flkyum4117VQoMC8SQxgosmAC7A7aWROheiE3nC9J2Vr42tYvF X-Received: by 2002:aa7:88d0:0:b0:536:e993:730d with SMTP id k16-20020aa788d0000000b00536e993730dmr1717056pff.81.1661200497412; Mon, 22 Aug 2022 13:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661200497; cv=none; d=google.com; s=arc-20160816; b=qwHy6+QYcgkTwQTWRjY2f0HcB+kGJrTuxrixnDZEZDoVW2wjJ6RVZ0KRHS859ydAlY 3hYFB3vno+bPcgRFZOJv9+Eo5dFDatMRMn7geiobY9yC7abN9OmXTN/JP7WXZfKNsWaF 9Xmhg1IM0U+zV9eX9lUHcME85gKxapqIkbJPQXgRvCT0gQnGvYaCQpr9/izpwk7hgxje cerN4yf3lUkpAo4YGG7Z7jXv/lN3DhNWtLd5IkZrHhZG1oORh1/ugugmeBc8911/ypvM MbudJVEDMiupSaXmd5ES5Tup1dq4i687+0STJF6ZUfglvx4ERHxUBroGpe68JSA6yGCR mf+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ZbQmqSkWBBn/z0f6ZfbzXMqhKIfzz08z99649/ndg68=; b=Fov4DLSpa7g33HtyJoZ9/L9qIp7k74jVlfQKRHwONGsIxko+5i6aDCfEevKkp84IvQ PlCFTScTouYYjSq78rPrwDydVrMZq6rTgziJgknFDSqKlaqqaGpCbIPO0zwtRD1Vaceb uALuX1Ofvv8dxJ3RX7fV7On/udExOkGQuNF42spkfIBownfxbj/dytkG6xzgNNL49gUx bmEDO06B2qQxnl+BePt4zhyvT9A603xKJVtofWHnbY1UAZpevQC8Hh7BxDPRUpei7fWC XPWXfgKhJrSHxXClCFEsi5qjTX3YQxm7xLfPZ0e5b96cp0LlrDmBWsbp3rZqz6HijnQK hCig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="FHe5bxd/"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m25-20020a637119000000b0041dd948dc6dsi11486792pgc.164.2022.08.22.13.34.46; Mon, 22 Aug 2022 13:34:57 -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=@gmx.net header.s=badeba3b8450 header.b="FHe5bxd/"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232461AbiHVUJi (ORCPT + 99 others); Mon, 22 Aug 2022 16:09:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232278AbiHVUJc (ORCPT ); Mon, 22 Aug 2022 16:09:32 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CC6452450; Mon, 22 Aug 2022 13:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661198965; bh=vM8dIaRuq/YyehZA7pwQXyRcVb/iqx4/5RXN88g/5yk=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=FHe5bxd/m91Xqz8hJnf4R/2aI49TeCdh6y1KyycViLZI5eVSfrUZzNbHSS3np9Pzp z5ie0nYjWxJr8rJRpG4giWYTyAbqe2uget3xw8N1hyIg0drbCEiAMPVT4NvgsMTFJ0 Cr6gTxtplVEbcFIThwf2cPgLCQIk6uf5Lml0jhh0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.190.222]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mk0NU-1pAFrB00Vc-00kLGk; Mon, 22 Aug 2022 22:09:25 +0200 Message-ID: <5fcc858a-c9f2-0a9c-ded9-5df2d794e3be@gmx.de> Date: Mon, 22 Aug 2022 22:09:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] fbcon: Destroy mutex on freeing struct fb_info Content-Language: en-US To: Shigeru Yoshida Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20220821111731.247446-1-syoshida@redhat.com> From: Helge Deller In-Reply-To: <20220821111731.247446-1-syoshida@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:wzAQ+Bzi2y+wnwtxdQ3Yh8A8Ue1WmeKBSk3OxvudWmIMPj8FvMF 1Or2PMxUF4oW3Y95M2RWK56cDZk0IE7uyI7o3VlNKI9/waB0hLyJEuflAcvJaln/BPjJe/J EYFrUAnhShD2IV+2ylG6f7BQIvP1zN5uLpnWPqTU7vTKzd/Da9dKSTSCCXAt5BKplTFNAvd axHr1aMdYjt5YesvTzqHQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:RdCxWpvtXEE=:9E5cH3on88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Xe61JMS4R869JV0hOAjQ9JKMRCg34WYiunn5JNHCMWkVlUke NuUJBSZQPhoQKx9Pj19ToKNoXb8Y0APLdAxoWgoNc3CeouIJ6j7dGHXmQ== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 On 8/21/22 13:17, Shigeru Yoshida wrote: > It's needed to destroy bl_curve_mutex on freeing struct fb_info since > the mutex is embedded in the structure and initialized when it's > allocated. > > Signed-off-by: Shigeru Yoshida applied. Thanks, Helge > --- > drivers/video/fbdev/core/fbsysfs.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/video/fbdev/core/fbsysfs.c b/drivers/video/fbdev/co= re/fbsysfs.c > index c2a60b187467..4d7f63892dcc 100644 > --- a/drivers/video/fbdev/core/fbsysfs.c > +++ b/drivers/video/fbdev/core/fbsysfs.c > @@ -84,6 +84,10 @@ void framebuffer_release(struct fb_info *info) > if (WARN_ON(refcount_read(&info->count))) > return; > > +#if IS_ENABLED(CONFIG_FB_BACKLIGHT) > + mutex_destroy(&info->bl_curve_mutex); > +#endif > + > kfree(info->apertures); > kfree(info); > }