Re: [PATCH] lib: Clarify the return value of strnlen_user()
From: Linus Torvalds
Date: Wed Jun 03 2015 - 11:02:50 EST
On Wed, Jun 3, 2015 at 6:50 AM, Jan Kara <jack@xxxxxxx> wrote:
> strnlen_user() can return a number in a range 0 to count +
> sizeof(unsigned long) - 1. Clarify the comment at the top of the
> function so that users don't think the function returns at most count+1.
Thanks. I also extended the comment (in the same commit) on commentary
on avoiding use of this function entirely.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/