X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=mm%2Futil.c;h=7c35ad95f92756d1473bbc2ae658f5bb27de2ca9;hb=260af56271f79da0e37faa5a99b1786b221297e5;hp=d5d2213728c51725fb658b5e20225cb429d93015;hpb=d2bf6be8ab63aa84e6149aac934649aadf3828b1;p=safe%2Fjmp%2Flinux-2.6 diff --git a/mm/util.c b/mm/util.c index d5d2213..7c35ad9 100644 --- a/mm/util.c +++ b/mm/util.c @@ -168,6 +168,10 @@ EXPORT_SYMBOL(krealloc); * * The memory of the object @p points to is zeroed before freed. * If @p is %NULL, kzfree() does nothing. + * + * Note: this function zeroes the whole allocated buffer which can be a good + * deal bigger than the requested buffer size passed to kmalloc(). So be + * careful when using this function in performance sensitive code. */ void kzfree(const void *p) {