Skip to content

Commit ef0bfb8

Browse files
librumpxen_xendev: Do not test uio->uio_offset in xenbus_dev_write
This field is undefined on entry to f_write functions. (The copying of the file offset to and from this field is done by vn_read and vn_write, only for vnode entries, which this isn't.) Signed-off-by: Ian Jackson <[email protected]>
1 parent 2f23dc0 commit ef0bfb8

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

platform/xen/librumpxen_xendev/busdev.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ xenbus_dev_write(struct file *fp, off_t *offset, struct uio *uio,
116116

117117
DPRINTF(("/dev/xen/xenbus[%p,dd=%p]: write...\n",dc,dd));
118118

119-
if (uio->uio_offset < 0)
120-
return EINVAL;
121-
122119
mutex_enter(&dd->lock);
123120

124121
for (;;) { /* keep reading more until we're done */

0 commit comments

Comments
 (0)