Module: xenomai-rpm
Branch: queue/vfile
Commit: 3a31587b6a9e0c1ef6fc699bfffb9f6d61594f10
URL:    
http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=3a31587b6a9e0c1ef6fc699bfffb9f6d61594f10

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Apr 30 00:13:16 2010 +0200

nucleus/vfile: fix boundary check in xnvfile_read_input()

---

 ksrc/nucleus/vfile.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ksrc/nucleus/vfile.c b/ksrc/nucleus/vfile.c
index 1ed0842..90cbf55 100644
--- a/ksrc/nucleus/vfile.c
+++ b/ksrc/nucleus/vfile.c
@@ -353,7 +353,7 @@ EXPORT_SYMBOL_GPL(xnvfile_destroy_link);
 ssize_t xnvfile_read_input(struct xnvfile_input *input,
                           void *data, size_t size)
 {
-       if (input->size > size)
+       if (input->size < size)
                size = input->size;
 
        if (size > 0 &&


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to