Re: [PATCH] Document kfree and vfree NULL usage (resend)

From: Parag Warudkar
Date: Sun Dec 05 2004 - 15:39:35 EST


On Sunday 05 December 2004 03:21 pm, Pekka Enberg wrote:
> On Sun, 2004-12-05 at 17:59 +0100, Manfred Spraul wrote:
> > And you are right: for vfree, it's "must not be called". I'll send a
> > separate patch. Or Andrew could just change it directly.
>
> Please do it for vunmap() also.
>
> Pekka
>
>
Ok. Patch for vfree and vunmap below. Please discard previous patch for kfree().

Parag

Signed-off-by: Parag Warudkar <kernel-stuff@xxxxxxxxxxx>

--- linux-mod/mm/vmalloc.c.orig 2004-12-05 12:40:50.699631616 -0500
+++ linux-mod/mm/vmalloc.c 2004-12-05 15:33:26.344334328 -0500
@@ -340,7 +340,7 @@ void __vunmap(void *addr, int deallocate
* Free the virtually contiguous memory area starting at @addr, as
* obtained from vmalloc(), vmalloc_32() or __vmalloc().
*
- * May not be called in interrupt context.
+ * Must not be called in interrupt context.
*/
void vfree(void *addr)
{
@@ -358,7 +358,7 @@ EXPORT_SYMBOL(vfree);
* Free the virtually contiguous memory area starting at @addr,
* which was created from the page array passed to vmap().
*
- * May not be called in interrupt context.
+ * Must not be called in interrupt context.
*/
void vunmap(void *addr)
{

Attachment: pgp00000.pgp
Description: PGP signature