]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
librumpxen_xendev: Do not test uio->uio_offset in xenbus_dev_write
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 7 Oct 2016 15:44:55 +0000 (16:44 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 7 Oct 2016 18:02:39 +0000 (19:02 +0100)
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 <Ian.Jackson@eu.citrix.com>
platform/xen/librumpxen_xendev/busdev.c

index e5d7c7a27f89add73216e343eed63285120bc100..c9d0afc76869d44f9ffd1bef26133b0820996d76 100644 (file)
@@ -116,9 +116,6 @@ xenbus_dev_write(struct file *fp, off_t *offset, struct uio *uio,
 
        DPRINTF(("/dev/xen/xenbus[%p,dd=%p]: write...\n",dc,dd));
 
-       if (uio->uio_offset < 0)
-               return EINVAL;
-
        mutex_enter(&dd->lock);
 
        for (;;) { /* keep reading more until we're done */