linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] allow NAME_SIZE > SYSFS_PATH_MAX
@ 2004-06-29 12:56 Olaf Hering
  0 siblings, 0 replies; 2+ messages in thread
From: Olaf Hering @ 2004-06-29 12:56 UTC (permalink / raw)
  To: linux-hotplug


NAME_SIZE is too small for some configurations. This patch allows more
or longer names, it just keeps the stack in a sane state.


--- udevdb.c	2004-03-28 18:06:50.000000000 +0200
+++ udevdb.c	2004-06-29 14:51:35.000000000 +0200
@@ -52,7 +52,7 @@ int udevdb_add_dev(const char *path, con
 	if ((path = NULL) || (dev = NULL))
 		return -ENODEV;
 
-	memset(keystr, 0, NAME_SIZE);
+	memset(keystr, 0, SYSFS_PATH_MAX);
 	strfieldcpy(keystr, path);
 	key.dptr = keystr;
 	key.dsize = strlen(keystr) + 1;

-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, n√úRNBERG


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] allow NAME_SIZE > SYSFS_PATH_MAX
@ 2004-07-02 18:05 Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-07-02 18:05 UTC (permalink / raw)
  To: linux-hotplug

On Tue, Jun 29, 2004 at 02:56:11PM +0200, Olaf Hering wrote:
> 
> NAME_SIZE is too small for some configurations. This patch allows more
> or longer names, it just keeps the stack in a sane state.

Applied, thanks.

greg k-h


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-02 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-29 12:56 [PATCH] allow NAME_SIZE > SYSFS_PATH_MAX Olaf Hering
  -- strict thread matches above, loose matches on Subject: below --
2004-07-02 18:05 Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).