Re: [CHECKER] error path memory leaks in 2.4.4 and 2.4.4-ac8

arjan@fenrus.demon.nl
Fri, 25 May 2001 08:21:04 +0100 (BST)


In article <200105250238.TAA00788@csl.Stanford.EDU> you wrote:
>> I believe we can make that a short. Arjan?

> Is the general way to fix these too-large stack vars to heap allocate
> them? Or is it preferable to put a "static" in front of them, if the
> routine is non-reentrant?

You're not always allowed to allocate memory. Esp in filesystems it can be
tricky as writes can be triggered by low-memory situations and allocating
memory their is suboptimal.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/