Kay Sievers 7eff2e7a8b Driver core: change add_uevent_var to use a struct
This changes the uevent buffer functions to use a struct instead of a
long list of parameters. It does no longer require the caller to do the
proper buffer termination and size accounting, which is currently wrong
in some places. It fixes a known bug where parts of the uevent
environment are overwritten because of wrong index calculations.

Many thanks to Mathieu Desnoyers for finding bugs and improving the
error handling.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-10-12 14:51:01 -07:00
..
2007-07-31 15:39:39 -07:00
2007-04-01 10:10:04 -05:00
2007-07-31 10:34:34 -05:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2007-05-06 09:33:11 -05:00
2007-09-25 20:55:02 -05:00
2006-08-06 15:59:26 -05:00
2006-11-15 16:41:27 -06:00
2007-07-31 10:36:30 -05:00
2007-07-31 10:36:30 -05:00
2006-09-12 17:12:31 -05:00
2007-08-01 08:51:32 -05:00
2007-05-24 09:14:41 -05:00
2007-05-31 17:30:04 -04:00
2007-08-22 19:52:45 -07:00
2007-07-21 17:49:16 -07:00
2006-09-12 17:12:31 -05:00
2006-11-30 05:24:39 +01:00
2007-07-20 08:24:49 -07:00
2007-05-24 09:13:25 -05:00
2007-04-17 18:15:04 -04:00
2007-02-09 09:14:07 -08:00
2007-07-21 17:49:16 -07:00
2007-07-18 11:16:32 -05:00
2007-07-18 11:16:32 -05:00
2007-08-04 08:37:04 -05:00
2007-05-28 09:08:32 -05:00
2007-07-14 19:12:15 -05:00
2007-07-31 10:44:01 -05:00
2007-07-31 10:44:01 -05:00
2007-05-31 17:30:04 -04:00
2006-11-15 16:43:50 -06:00
2007-07-18 11:16:38 -05:00