Subject: Re: wd.c patch to reduce kernel stack usage
To: None <tech-kern@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 06/26/2002 21:51:33
On Thu, Jun 27, 2002 at 04:16:21AM +0900, YAMAMOTO Takashi wrote:
> hi.
> 
> is attached patch ok?
> (in order to reduce kernel stack usage.)

I'd be tempted to go the whole hog and make wdperror malloc()
a buffer that the caller has to free().

That way the buffer cam be allocated by code that knows how big
it needs to be (and use snprint to ensure it isn't overrun.

	David

-- 
David Laight: david@l8s.co.uk