Fixes VFS generic_file_read with too large offsets
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 22 Jul 2014 04:47:50 +0000 (21:47 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 22 Jul 2014 04:47:50 +0000 (21:47 -0700)
commit2f5f2066da85bbd9bb07f60f5e63f7b847029c56
treed22d16c4006e5d1a8164e5698bef322ebcb37317
parenteb3531d37a94cdc2ff5b36ce2c5315fc3ccc4874
Fixes VFS generic_file_read with too large offsets

If offset is greater than the file size, we should return 0.

We had another bug causing large offsets, and when offset was greater
than the filesize, count would be < 0.  Definite trouble.
kern/src/vfs.c