mm/util.c: update the kerneldoc for kstrdup_const()
[linux-block.git] / mm / util.c
index 4e21fe7eae278fb57e7efa8e6da2e29c0922b3b3..4ddb6e186dd5cff8768ccbc186c85b31f05fe2c0 100644 (file)
--- a/mm/util.c
+++ b/mm/util.c
@@ -69,7 +69,8 @@ EXPORT_SYMBOL(kstrdup);
  * @s: the string to duplicate
  * @gfp: the GFP mask used in the kmalloc() call when allocating memory
  *
- * Note: Strings allocated by kstrdup_const should be freed by kfree_const.
+ * Note: Strings allocated by kstrdup_const should be freed by kfree_const and
+ * must not be passed to krealloc().
  *
  * Return: source string if it is in .rodata section otherwise
  * fallback to kstrdup.