From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261351AbTEMOzf (ORCPT ); Tue, 13 May 2003 10:55:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261352AbTEMOzf (ORCPT ); Tue, 13 May 2003 10:55:35 -0400 Received: from air-2.osdl.org ([65.172.181.6]:24808 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S261351AbTEMOzd (ORCPT ); Tue, 13 May 2003 10:55:33 -0400 Date: Tue, 13 May 2003 08:08:35 -0700 (PDT) From: Patrick Mochel X-X-Sender: mochel@cherise To: Ben Collins cc: Christoph Hellwig , Linus Torvalds , Subject: Re: [PATCH] Make KOBJ_NAME_LEN match BUS_ID_SIZE In-Reply-To: <20030513071412.GS433@phunnypharm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 May 2003, Ben Collins wrote: > On Tue, May 13, 2003 at 08:10:32AM +0100, Christoph Hellwig wrote: > > On Tue, May 13, 2003 at 02:26:40AM -0400, Ben Collins wrote: > > > This was causing me all sorts of problems with linux1394's 16-18 byte > > > long bus_id lengths. The sysfs names were all broken. > > > > > > This not only makes KOBJ_NAME_LEN match BUS_ID_SIZE, but fixes the > > > strncpy's in drivers/base/ so that it can't happen again (atleast the > > > strings will be null terminated). > > > > What about defining BUS_ID_SIZE in terms of KOBJ_NAME_LEN? > > Ok, then add this in addition to the previous patch. I'll add this, and sync with Linus this week, if he doesn't pick it up. Thanks, -pat