diff options
author | solene <solene@cvs.openbsd.org> | 2019-07-12 13:56:29 +0000 |
---|---|---|
committer | solene <solene@cvs.openbsd.org> | 2019-07-12 13:56:29 +0000 |
commit | 0ec66fa131c6bdeca66a7743567e0663670ce75c (patch) | |
tree | 347a3ce66fd6d2545332f3749ac92f9524dc8d89 /sys/dev | |
parent | e375eaa33fb168333550b5a0922605f77836b90a (diff) |
Revert anton@ changes about read/write unlocking
https://marc.info/?l=openbsd-cvs&m=156277704122293&w=2
ok anton@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/drm_linux.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/drm_linux.c b/sys/dev/pci/drm/drm_linux.c index 90dc896ad3e..7724d827bea 100644 --- a/sys/dev/pci/drm/drm_linux.c +++ b/sys/dev/pci/drm/drm_linux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_linux.c,v 1.43 2019/07/10 16:43:19 anton Exp $ */ +/* $OpenBSD: drm_linux.c,v 1.44 2019/07/12 13:56:27 solene Exp $ */ /* * Copyright (c) 2013 Jonathan Gray <jsg@openbsd.org> * Copyright (c) 2015, 2016 Mark Kettenis <kettenis@openbsd.org> @@ -1346,9 +1346,7 @@ dmabuf_seek(struct file *fp, off_t *offset, int whence, struct proc *p) default: return (EINVAL); } - foffset_enter(fp); - foffset_leave(fp, newoff, 0); - *offset = newoff; + fp->f_offset = *offset = newoff; return (0); } |