[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+55aFyuKFoF7Pt5RPHz44orO8xKuTEk-hBVD1OxG3c9aH9-LA@mail.gmail.com>
Date: Wed, 3 Jun 2015 08:01:44 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Jan Kara <jack@...e.cz>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] lib: Clarify the return value of strnlen_user()
On Wed, Jun 3, 2015 at 6:50 AM, Jan Kara <jack@...e.cz> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists