diff options
author | Stefan Kempf <stefan@cvs.openbsd.org> | 2016-01-20 17:23:59 +0000 |
---|---|---|
committer | Stefan Kempf <stefan@cvs.openbsd.org> | 2016-01-20 17:23:59 +0000 |
commit | 2dc681ae314bdc4af14b5e261b9389d193d1318a (patch) | |
tree | b8e1f79be4a6895dc481b98d27decdcc655a43e9 /sys/dev | |
parent | 225d63b0077eb56e95e554d4fbf24a8bdc2da8dc (diff) |
Set segflg member of uio struct with symbolic enum value
instead of using magic numbers. No binary change.
Diff from Martin Natano.
ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ata/wd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c index 634cb433f81..5e2461feb3a 100644 --- a/sys/dev/ata/wd.c +++ b/sys/dev/ata/wd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wd.c,v 1.119 2015/08/26 22:29:39 deraadt Exp $ */ +/* $OpenBSD: wd.c,v 1.120 2016/01/20 17:23:58 stefan Exp $ */ /* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */ /* @@ -836,7 +836,7 @@ wdioctl(dev_t dev, u_long xfer, caddr_t addr, int flag, struct proc *p) auio.uio_iov = &aiov; auio.uio_iovcnt = 1; auio.uio_resid = fop->df_count; - auio.uio_segflg = 0; + auio.uio_segflg = UIO_USERSPACE; auio.uio_offset = fop->df_startblk * wd->sc_dk.dk_label->d_secsize; auio.uio_procp = p; |