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:
parent
99639e4a13
commit
a1cf80b493
|
@ -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) \
|
||||||
|
|
Loading…
Reference in New Issue