mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
lockd: Eliminate harmless mixed sign comparison in nlmdbg_cookie2a()
The cookie->len field is unsigned, so the loop index variable in nlmdbg_cookie2a() should also be unsigned. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
3d509e5454
commit
cab6fc1b77
1 changed files with 1 additions and 2 deletions
|
@ -612,8 +612,7 @@ const char *nlmdbg_cookie2a(const struct nlm_cookie *cookie)
|
||||||
* called with BKL held.
|
* called with BKL held.
|
||||||
*/
|
*/
|
||||||
static char buf[2*NLM_MAXCOOKIELEN+1];
|
static char buf[2*NLM_MAXCOOKIELEN+1];
|
||||||
int i;
|
unsigned int i, len = sizeof(buf);
|
||||||
int len = sizeof(buf);
|
|
||||||
char *p = buf;
|
char *p = buf;
|
||||||
|
|
||||||
len--; /* allow for trailing \0 */
|
len--; /* allow for trailing \0 */
|
||||||
|
|
Loading…
Add table
Reference in a new issue