From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: Re: [PATCH] i2c: Let the user specify PCI driver data through new_id Date: Thu, 17 Jan 2008 10:01:39 -0800 Message-ID: <20080117180139.GC6996@suse.de> References: <20080117140937.6fd37183@hyperion.delvare> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20080117140937.6fd37183-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Errors-To: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org To: Jean Delvare Cc: Linux I2C List-Id: linux-i2c@vger.kernel.org On Thu, Jan 17, 2008 at 02:09:37PM +0100, Jean Delvare wrote: > The i2c-amd756 and i2c-viapro drivers make use of the driver_data > field of the PCI device ID. When adding device IDs dynamically (by > writing to the new_id sysfs file) you cannot set the value of this > field by default. It has to be allowed explicitly. Do that, and > check the value so that the user can't crash the kernel accidentally. > > Signed-off-by: Jean Delvare Acked-by: Greg Kroah-Hartman _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c