diff options
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index 6da260c..f9b7db7 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -529,7 +529,7 @@ tmpfs_read(struct vop_read_args *v) size_t len; int resid; - int error; + int error = 0; node = VP_TO_TMPFS_NODE(vp); @@ -576,6 +576,8 @@ tmpfs_mappedwrite(vm_object_t vobj, vm_object_t tobj, size_t len, struct uio *ui caddr_t va; int error; + error = 0; + addr = uio->uio_offset; idx = OFF_TO_IDX(addr); offset = addr & PAGE_MASK; |