diff options
Diffstat (limited to 'mm/util.c')
-rw-r--r-- | mm/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -168,6 +168,10 @@ EXPORT_SYMBOL(krealloc); | |||
168 | * | 168 | * |
169 | * The memory of the object @p points to is zeroed before freed. | 169 | * The memory of the object @p points to is zeroed before freed. |
170 | * If @p is %NULL, kzfree() does nothing. | 170 | * If @p is %NULL, kzfree() does nothing. |
171 | * | ||
172 | * Note: this function zeroes the whole allocated buffer which can be a good | ||
173 | * deal bigger than the requested buffer size passed to kmalloc(). So be | ||
174 | * careful when using this function in performance sensitive code. | ||
171 | */ | 175 | */ |
172 | void kzfree(const void *p) | 176 | void kzfree(const void *p) |
173 | { | 177 | { |