From: Ian Jackson Date: Fri, 7 Oct 2016 15:44:55 +0000 (+0100) Subject: librumpxen_xendev: Do not test uio->uio_offset in xenbus_dev_write X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ef0bfb8dbc1927c98cba185534b48cf87efa11ab;p=osstest%2Frumprun.git 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 --- diff --git a/platform/xen/librumpxen_xendev/busdev.c b/platform/xen/librumpxen_xendev/busdev.c index e5d7c7a..c9d0afc 100644 --- a/platform/xen/librumpxen_xendev/busdev.c +++ b/platform/xen/librumpxen_xendev/busdev.c @@ -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 */