]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix signed compare in fs/proc/generic.c::proc_file_read()
authorGeorgi Guninski <guninski@guninski.com>
Wed, 2 Feb 2005 09:42:38 +0000 (01:42 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 2 Feb 2005 09:42:38 +0000 (01:42 -0800)
Acked-by: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/generic.c

index 83a9bfea1d3fa53fdb5e2fb6a59ba9bd4a2da85c..6c6315d04028711151627a09a29c186fec7d856a 100644 (file)
@@ -60,7 +60,7 @@ proc_file_read(struct file *file, char __user *buf, size_t nbytes,
                return -ENOMEM;
 
        while ((nbytes > 0) && !eof) {
-               count = min_t(ssize_t, PROC_BLOCK_SIZE, nbytes);
+               count = min_t(size_t, PROC_BLOCK_SIZE, nbytes);
 
                start = NULL;
                if (dp->get_info) {