Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1165878rdf; Wed, 22 Nov 2023 07:16:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNojiDQPKBzu3Q9h06MOOUmK+CLyHN9K/8t+Rlj7DIQpBBros07CU3wyZU9iRKfAjrpDvo X-Received: by 2002:a05:6a20:734f:b0:18b:594a:2c17 with SMTP id v15-20020a056a20734f00b0018b594a2c17mr1248564pzc.16.1700666191591; Wed, 22 Nov 2023 07:16:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700666191; cv=none; d=google.com; s=arc-20160816; b=BDDejP1S4zGf7hR+dy7ZKooq/lv+mCUKJs52F0wyaoR+DV6CD9dWkIZElGPN2HTlS4 R0B3Nlpzima0gQsXEvblagB8MgtCCOblICE+VxoHUCYd+7F2phM9SVykaTlHEnHl561i rV9fVg9BNGAG5iDeW8CcM81IE1KMC0gV54OKdXESFTY8LUtrWb4OsVAkWvspWlZ03APH Q0hUkgkjFGSw/CL8dPNaf1KsHnyXpkxLJ/yI/VEPgvEsq3rR3kvRfN4NHdDBy/Wlmg+S k7QK/urhf+OYj+E87pRerkGo0OfjADummqUwSvzJkfn0LKaKbcw1qQQ8V2FsFFnxL29s L7EQ== 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=SyHVCCe1TwoPClBnsSLHf4EvNUXQ/W3rjCvpOp2oD5E=; fh=hBCZnQMh7qvFX/oe22eLjZmpqdmt3H6jNerLsM/H9gs=; b=ztskyAnMCUxUqOoYFmcxjBuEeS/9S+zU+e0HdWtT6g32thz0Y3uHVVR3/UeuUnmOTG OKqxN9dUlywOHIfS9k9droalKpUCiDw/7gW5h7TMHSrycGAgWyT0VeJ03I1iry+NZX1b hlzvzbKwL0w/S/zCJqbCK+xtObMig1i4SSNh4vMcW+erSrKr9oDkC94IvBBW1tn6pRAU 40Kw7N/FU0hKP7szIXPwcPXcbHpWmzCjcHuAg9B2kgu0ZysmXhfy/XdvjDB7ndjWvvOp iLjKOAnRmze4LWfQf80CF19YOao/aCZWPGETDqjZeLxNnKa2BTayyP5JBJgp5KoMofIW YPHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cmUg6Nhm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id q8-20020a056a00088800b0069100706960si13035867pfj.116.2023.11.22.07.16.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 07:16:31 -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 header.i=@gmail.com header.s=20230601 header.b=cmUg6Nhm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 864C3807079A; Wed, 22 Nov 2023 07:15:36 -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 S230398AbjKVPPa (ORCPT + 99 others); Wed, 22 Nov 2023 10:15:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbjKVPP3 (ORCPT ); Wed, 22 Nov 2023 10:15:29 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EDBA92; Wed, 22 Nov 2023 07:15:26 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5441305cbd1so9519348a12.2; Wed, 22 Nov 2023 07:15:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700666124; x=1701270924; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=SyHVCCe1TwoPClBnsSLHf4EvNUXQ/W3rjCvpOp2oD5E=; b=cmUg6NhmhOWJq3HMPHiaTn2vY09g8/hBsE1BUgPRw3uQoH5BlZhSE1msRvLKGvMrVM haTY3aRfud2T5dEKLpfj+jE3x5p6GVs+JJ1F6+jFF9rqGitezjrSwwaKgCjeSNtoCfSD DlwW2m6Gj1px3cj7J3gy48wqQ62wGMV5zq1wf/eTeZaEkOm3mryQyTmLtvvdDs93+aS5 se33DK5SPPx/Pu5JsnptsL0qtblHJ45oDHS1nNIZurbeD8WA75BvIZrNsbZY97I83FEO SvoG8BwCmOKsnVW81Bxqvx9ecUk2ssj7zpZMcoZku2XW1wPIYYuQwoLqkwTQSygCgKKK K59A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700666124; x=1701270924; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SyHVCCe1TwoPClBnsSLHf4EvNUXQ/W3rjCvpOp2oD5E=; b=tb/t0vcEFSuUgODsB/Rf0LEMHnZPgmk/2uLiI04WygH/KYlyuqO42zp7KZu/sJcI1I hgaBlG+jyy1yBhvnVZFiCzyEFTLZoXBZRoGLAVzfB5pvtrx/87HN9Lt/AOjBP/04jIMw qSOe/4KnWfa/9FzoIpN4sty43MBoJAOpYoSFKfK3MLIHc6GaouyiHjVtnw6EZKO6r7xF aNoOQ9jpGxfsVJ+xAFe3/wau2/2U6fhwJhUby8tl0zGAFqvxNnQIkKGMvihje2ySbnzp dzE8+BlnolB9N7ELxskp9Nf7THAtdZeLQZvzQvm/bCNZKYbrMVQWwntfZLvQQDt2trr2 AoZg== X-Gm-Message-State: AOJu0Yx2xcglGx5nZ0kO5VRbQlGcECRhdHMAsCs2tyQPOusUzi3oG7S0 PsYUwdOC4G3ETdCtpZ2XT1M= X-Received: by 2002:a05:6402:100e:b0:54a:97c4:b03c with SMTP id c14-20020a056402100e00b0054a97c4b03cmr83170edu.2.1700666124240; Wed, 22 Nov 2023 07:15:24 -0800 (PST) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation (net-2-39-142-131.cust.vodafonedsl.it. [2.39.142.131]) by smtp.gmail.com with ESMTPSA id r5-20020a056402018500b0053dec545c8fsm6191706edv.3.2023.11.22.07.15.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 07:15:23 -0800 (PST) Date: Wed, 22 Nov 2023 16:15:21 +0100 From: Tommaso Merciai To: Tomi Valkeinen Cc: Dafna Hirschfeld , Laurent Pinchart , 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: 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=us-ascii Content-Disposition: inline In-Reply-To: <20231122-rkisp-fixes-v1-2-1958af371e39@ideasonboard.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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:15:36 -0800 (PST) Hi Tomi, 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 > --- > 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); > } > > > -- > 2.34.1 > > Reviewed-by: Tommaso Merciai Thanks & Regards, Tommaso