Skip to content

Commit ac20100

Browse files
author
Tyler Hicks
committed
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 <[email protected]>
1 parent 802b352 commit ac20100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ecryptfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ ecryptfs_readlink(struct dentry *dentry, char __user *buf, int bufsiz)
690690
}
691691
/* Check for bufsiz <= 0 done in sys_readlinkat() */
692692
rc = copy_to_user(buf, plaintext_name,
693-
min((unsigned) bufsiz, plaintext_name_size));
693+
min((size_t) bufsiz, plaintext_name_size));
694694
if (rc)
695695
rc = -EFAULT;
696696
else

0 commit comments

Comments
 (0)