Return-path: Received: from smtp-vbr4.xs4all.nl ([194.109.24.24]:4981 "EHLO smtp-vbr4.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754217Ab0DAIcW (ORCPT ); Thu, 1 Apr 2010 04:32:22 -0400 From: Hans Verkuil To: Wolfram Sang Subject: Re: [PATCH 12/24] media/video: fix dangling pointers Date: Thu, 1 Apr 2010 10:32:50 +0200 Cc: Mark Brown , Jean Delvare , kernel-janitors@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org References: <1269094385-16114-1-git-send-email-w.sang@pengutronix.de> <201003211709.56319.hverkuil@xs4all.nl> <20100330123912.GI29472@pengutronix.de> In-Reply-To: <20100330123912.GI29472@pengutronix.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Message-Id: <201004011032.50117.hverkuil@xs4all.nl> Sender: linux-media-owner@vger.kernel.org List-ID: On Tuesday 30 March 2010 14:39:12 Wolfram Sang wrote: > Hans, > > > But this just feels like an i2c core thing to me. After remove() is called > > the core should just set the client data to NULL. If there are drivers that > > rely on the current behavior, then those drivers should be reviewed first as > > to the reason why they need it. > > It will be done this way now. As you have taken part in the discussion, I guess > the media-subsystem never really considered picking those patches up ;) I remember that there was one patch in your patch series where the client data was set after it was freed. That should still be fixed (by just removing the i2c_set_clientdata). Can you post that one again? Regards, Hans > > Regards, > > Wolfram > > -- Hans Verkuil - video4linux developer - sponsored by TANDBERG