Commit ac20100df7a7a042423dcb8847f42d9f6ddb8d00

Authored by Tyler Hicks
1 parent 802b352f29

eCryptfs: Fix min function comparison warning

This warning shows up on 64 bit builds:

fs/ecryptfs/inode.c:693: warning: comparison of distinct pointer types
lacks a cast

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -690,7 +690,7 @@
690 690 }
691 691 /* Check for bufsiz <= 0 done in sys_readlinkat() */
692 692 rc = copy_to_user(buf, plaintext_name,
693   - min((unsigned) bufsiz, plaintext_name_size));
  693 + min((size_t) bufsiz, plaintext_name_size));
694 694 if (rc)
695 695 rc = -EFAULT;
696 696 else