From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fout-a1-smtp.messagingengine.com (fout-a1-smtp.messagingengine.com [103.168.172.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 880B43E9F7A; Fri, 27 Mar 2026 11:08:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.144 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774609738; cv=none; b=gf5pE5rt9lk+91xpqn7LwawAkptyMI1VmKKtnPdTUTV+dq3HjZgCzEfUgHWgwp/Ska5XiKN6wHGG2o1pRVIdWKSdxIDWJqMm/E5goeLfY9hAgD4tLt+y8eEwMti4RW+YZ4mU8qCUK9eF+TeyEPN5ZcaWVjnGDnN3KqRFGBaKUZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774609738; c=relaxed/simple; bh=kxs3uoeibgJks14I246qovD+NIrodqa4hjuImalmujk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VZYgaXWLb1AfvA2g+JKfpoYo8pSuqDFFVbbEHPwMvDOaYxYa4TYCQ1l7PISzLUalzytcRqKd1LIaBtNDBaHgTzjn5W5TeLaWWi/Axy8IZB6svBPc9uE7DTd+2p8v0KojgjSwGVcpFh1YGOrJjRWh5tlIbVAAe7hZKqUmQoksrK0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com; spf=pass smtp.mailfrom=kroah.com; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b=BUUWsY6W; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=DaiyR1kk; arc=none smtp.client-ip=103.168.172.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kroah.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="BUUWsY6W"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="DaiyR1kk" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 9A061EC0268; Fri, 27 Mar 2026 07:08:48 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Fri, 27 Mar 2026 07:08:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1774609728; x=1774696128; bh=09t+uuWcca 1Za4Y3fkBqYmks2DVrmw6Kqmer/gUVJnY=; b=BUUWsY6W7ncAcDC7ZNo0WK4bv/ pJ1foRBcOavhDNU7wB5oe04D5c5lnz0vlb6xFkQL0de9ElJYH8Xw2r9b4aDl+Nr6 eYk53r/r0Il3zcNImy+/EZ/QNOUyTqus5r42kAlrBsl9CvThCIt38Z/6PUCB+FDI 6rz+fxIYi6ukfQXBedHS7Fwo/mGjUU52GHbnFO9dZ/qEm/RKSWkTXyyXJfG7qwk/ mYDSG4++3/xE8rhts/bs0gtxUe3+dmgPmVA/2ng/DZhy/jam9z38/bw+jyAP1j2j zzD6jUMOHpJtmn9x72Px+H9xbM8l4NsHmolHM5hfteV7x9OJnMmiYF7osZpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1774609728; x=1774696128; bh=09t+uuWcca1Za4Y3fkBqYmks2DVrmw6Kqme r/gUVJnY=; b=DaiyR1kkKWiD/C6WH9ASDFiXarvc/+nEAbCmdg6wFcu4LMbkRHP 5wsNd9Qgqsi8y/TmCS+76O1XzbXwKa+vjVIvCIVUTfZOOODrRJ0iG4C+gwUsLXDx 8oY+4IaKHKNJNIUaLc7E9r9FPM7boRYORPIfADkxHP4qwY4DZ9yuLz1aj0f8Y8+k Qb2aGHRKeZvvDDeMvd3HJOMuElSY50BJQ9zlaz8TH/GBymYxllDWo4ril6zx5XM6 08kztSmVxcCJ5ePX1a5uNvDSPDCzVQBCPWfsTErXB/uQooSKsSMPNWfPEM/t69Iv NffSC9fLvj+PyT9uovm+Mop7o4jbgVcz1wg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeffedtuddvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghgucfm jfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepheegvdevvd eljeeugfdtudduhfekledtiefhveejkeejuefhtdeufefhgfehkeetnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrd gtohhmpdhnsggprhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjhhohhgrnheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepmhgthhgvhhgrsgeskh gvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqmhgvughirgesvhhgvghrrdhk vghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrd hkvghrnhgvlhdrohhrghdprhgtphhtthhopehsthgrsghlvgesvhhgvghrrdhkvghrnhgv lhdrohhrgh X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Mar 2026 07:08:48 -0400 (EDT) Date: Fri, 27 Mar 2026 12:08:24 +0100 From: Greg KH To: Johan Hovold Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] media: cx231xx: fix devres lifetime Message-ID: <2026032742-sublet-wolverine-e88d@gregkh> References: <20260327104355.1310012-1-johan@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260327104355.1310012-1-johan@kernel.org> On Fri, Mar 27, 2026 at 11:43:55AM +0100, Johan Hovold wrote: > USB drivers bind to USB interfaces and any device managed resources > should have their lifetime tied to the interface rather than parent USB > device. This avoids issues like memory leaks when drivers are unbound > without their devices being physically disconnected (e.g. on probe > deferral or configuration changes). > > Fix the driver state lifetime so that it is released on driver unbind. Wow, I bet we have a lot of these now, did you find this with a script or something that you can run over the whole tree? thanks, greg k-h