Matching kmem_free() fix for use after free case.

See commit bb01879ebe for a full
description.  This issue should have been addressed in the same
commit but it slipped my mind.
This commit is contained in:
Brian Behlendorf 2009-02-19 12:28:10 -08:00
parent 99639e4a13
commit a1cf80b493
1 changed files with 5 additions and 5 deletions

View File

@ -128,7 +128,7 @@ extern void vmem_free_debug(void *ptr, size_t size);
# define kmem_alloc(size, flags) kmalloc((size), (flags)) # define kmem_alloc(size, flags) kmalloc((size), (flags))
# define kmem_zalloc(size, flags) kzalloc((size), (flags)) # define kmem_zalloc(size, flags) kzalloc((size), (flags))
# define kmem_free(ptr, size) (kfree(ptr), (void)(size)) # define kmem_free(ptr, size) ((void)(size), kfree(ptr))
# ifdef HAVE_KMALLOC_NODE # ifdef HAVE_KMALLOC_NODE
# define kmem_alloc_node(size, flags, node) \ # define kmem_alloc_node(size, flags, node) \