Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1185873rdf; Wed, 22 Nov 2023 07:45:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbHdVM/T8IztO+aiBshaz6Yl93vgs+k9ois2OSzWuUGHQ93oO36ooDV7LbKXOW0RJyFOfm X-Received: by 2002:a05:6808:110:b0:3b6:b073:20d7 with SMTP id b16-20020a056808011000b003b6b07320d7mr2806042oie.17.1700667957584; Wed, 22 Nov 2023 07:45:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700667957; cv=none; d=google.com; s=arc-20160816; b=Zrt5wpbYKVKDwBxoc92kLm4El8FDsvTR+6khuGJkrkixB8WH8EAP9BYhHsT31tyP85 a7t//Ediwarpfr0YmJqyHmrCJr7B0laChodQb+7/HsiYxLkamtjI1AhxSTgm++VLSVD7 MrnNzmvcuoNmLmPtI++AclTJzNOWA/PvXQeRADvWceszbyE/qqLRE2/Te57y5uTThezi kCtb//3XCsqVJjjUOx0QGjSoyMT3DtiqVVTommfrFZDHhTkDmRk0e8BDpiOuIIblMi5Y nJ4YBptHwxwLoo7deMqk6UYysaprupcZNuIn6UgzDQBt5j79n50MgtirVusWMQS4gmvx 2erg== 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=UaastccQ5eaG3N5criS5wJ6kSeBXmwChqx/+EN3tXAM=; fh=O6AKoZVERGV5uFwKmcMDa69sdDQ3QPYGj4KN/4FIrVE=; b=tDLdozDlgB/rDnwxFdhrMQsv0MMyKfHN3m0GbOCLmnP34om8YfiNpcRwC03GYNdkEr L7EVjkh/gC6qXh8Y+UEz1HUYUcvAd0IDGOWPW1f8HEU06/yRcRZPHJgceLxWjZGyKiJU 3WO4jQAs1LbiQonjuX2sMnilXAzNg3L9Yht3KWVrb4TMwcV0zcdH7Wwc/HGzP/rdHCYf IlujlyE8HmgPH7NlQs9uXPV29elIhbqwYdBqLCBXkjst4JtRPR+pkFdWKkAMDS8BP4QL SwPc4e0Z/Lfp8BvLbnQWKYtX+9t4FE6cr+PJSJfm/nzsNIiXxyHVfsMD1mfE3r6Pvn/U 70ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=hnMtkywL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id i190-20020a6387c7000000b005897813624fsi12646321pge.476.2023.11.22.07.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 07:45:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=hnMtkywL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 9AE04805C14D; Wed, 22 Nov 2023 07:45:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344633AbjKVPpF (ORCPT + 99 others); Wed, 22 Nov 2023 10:45:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235222AbjKVPod (ORCPT ); Wed, 22 Nov 2023 10:44:33 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE4A01990; Wed, 22 Nov 2023 07:43:21 -0800 (PST) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 947C8276; Wed, 22 Nov 2023 16:42:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1700667768; bh=k29ozEbJ8zlLnjX66MhNGx4brAb6opLBW5VLft4t83g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hnMtkywL1K930hJV+LYSEbgVBb/a2anGMk3b/mOd+i4Gy3ZO8YKZLlyHZTkH9HUpH b1JBkvYGM0fbqWNOEXvbQyQ3tiIHw5TP2y+o+TjvtLcTRRcoit5kYVOUdg/gye8hOJ 6a45U4Ho++QFBds3fX0zShk+DxGra47hG4XBi8+c= Date: Wed, 22 Nov 2023 17:43:26 +0200 From: Laurent Pinchart To: Tomi Valkeinen Cc: Dafna Hirschfeld , Mauro Carvalho Chehab , Heiko Stuebner , Jacob Chen , Yichong Zhong , Shunqian Zheng , Paul Elder , Sakari Ailus , Kieran Bingham , Hans Verkuil , Eddie Cai , Allon Huang , Jeffy Chen , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] media: rkisp1: Fix memory leaks in rkisp1_isp_unregister() Message-ID: <20231122154326.GI3909@pendragon.ideasonboard.com> References: <20231122-rkisp-fixes-v1-0-1958af371e39@ideasonboard.com> <20231122-rkisp-fixes-v1-2-1958af371e39@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231122-rkisp-fixes-v1-2-1958af371e39@ideasonboard.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 22 Nov 2023 07:45:52 -0800 (PST) Hi Tomi, Thank you for the patch. On Wed, Nov 22, 2023 at 04:42:23PM +0200, Tomi Valkeinen wrote: > Add missing call to v4l2_subdev_cleanup() to fix memory leak. > > Fixes: 2cce0a369dbd ("media: rkisp1: isp: Use V4L2 subdev active state") > Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart > --- > drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c b/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c > index 88ca8b2283b7..45d1ab96fc6e 100644 > --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c > +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c > @@ -933,6 +933,7 @@ void rkisp1_isp_unregister(struct rkisp1_device *rkisp1) > return; > > v4l2_device_unregister_subdev(&isp->sd); > + v4l2_subdev_cleanup(&isp->sd); > media_entity_cleanup(&isp->sd.entity); > } > -- Regards, Laurent Pinchart