X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=mm%2Futil.c;h=7c35ad95f92756d1473bbc2ae658f5bb27de2ca9;hb=e12399fec3793e0c2b75d366c7fd48a360f6e328;hp=d5d2213728c51725fb658b5e20225cb429d93015;hpb=4f6e1fe1d8ba3d9f4fb52dd006da9714d75243cf;p=karo-tx-linux.git diff --git a/mm/util.c b/mm/util.c index d5d2213728c5..7c35ad95f927 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) {