Skip to content

Commit 9ea66ab

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6: eCryptfs: Fix min function comparison warning ecryptfs: fix printk format warning
2 parents 93acda8 + ac20100 commit 9ea66ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/ecryptfs/inode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ ecryptfs_readlink(struct dentry *dentry, char __user *buf, int bufsiz)
667667
lower_buf = kmalloc(lower_bufsiz, GFP_KERNEL);
668668
if (lower_buf == NULL) {
669669
printk(KERN_ERR "%s: Out of memory whilst attempting to "
670-
"kmalloc [%d] bytes\n", __func__, lower_bufsiz);
670+
"kmalloc [%zd] bytes\n", __func__, lower_bufsiz);
671671
rc = -ENOMEM;
672672
goto out;
673673
}
@@ -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)