From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 166A534A773; Thu, 30 Apr 2026 08:42:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777538522; cv=none; b=JI/umac8Aar2DowA9hURxT9EOSUc1ChoIvshGd4ru8VpwgyK/q4g2GiHFJJo/RQxdZiwMLoTCMq90/+BFoO+jkcD6JtcnGL8Tl87Nvvs8tstZ9rHsYi5u9CGggqi1cYwdxAAkUGOeL2wvH0GEQNVP6HJVGoEg/4R5T1o27LO+sQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777538522; c=relaxed/simple; bh=4eFJARbEGhVdWHysJfoWeIBmAK2t7W0gsE9NqtndKSc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RYCZKsPN0NnD8P15fRZ85dRu706wDWChuHGLISZeC4a7X4UJPXQ0A/aeRjcPEOZ7Zg+b9YCnOERy2hWtyMBf1gf9Ru4L9W2LH7e3uWpi7pqn+lPvSiC4E7T1K8Ieg1dRV5cpIBFBC2s4cq6jGp2urv1rgzPPyhaqmdS6FznuDow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aWYq7h+9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aWYq7h+9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC3B2C2BCB3; Thu, 30 Apr 2026 08:42:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777538521; bh=4eFJARbEGhVdWHysJfoWeIBmAK2t7W0gsE9NqtndKSc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aWYq7h+9i/Az4xLiL52WqmlAdnc+xtHXeI0r+YxD+hUAsqQ+eI9jEuj7I2jDw8Rj6 1hjXdZAyu24jmfs1KM8WI+//i5wLjylnxQKAsOfm3e/OFB73PITMAbakR36rZxN9m+ Bif23I5GhYUN67zTk+j0tiHrtgN9ThQ/yttG9sUhoYxqq2K8BlA+Z1P3p6YLgOOfVp aXUoi/TdMaj6KI+4wEcrponlnEOIY46CzszF4fu35qBsiqVWodKbBQl2FJ9xrcESU3 2A2dSbPhV5Rg+1peitzYYZGHs4E+nNk26+TY0VyW2diJvryMu/WDDNtH8POgBFtWJR m+Gz4UjxnNKtw== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1wIMy7-00000000vS6-1G3S; Thu, 30 Apr 2026 10:41:59 +0200 Date: Thu, 30 Apr 2026 10:41:59 +0200 From: Johan Hovold To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2] media: cx231xx: fix devres lifetime Message-ID: References: <20260330093727.1622465-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: <20260330093727.1622465-1-johan@kernel.org> On Mon, Mar 30, 2026 at 11:37:27AM +0200, 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. > > Fixes: 184a82784d50 ("[media] cx231xx: use devm_ functions to allocate memory") > Cc: stable@vger.kernel.org # 3.17 > Signed-off-by: Johan Hovold > --- > > Changes in v2 > - Drop CC tag for Mauro to make the CI bot happy Can this one be picked up now? Johan