summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/drm_linux.c
diff options
context:
space:
mode:
authorsolene <solene@openbsd.org>2019-07-12 13:56:27 +0000
committersolene <solene@openbsd.org>2019-07-12 13:56:27 +0000
commit6784024ee26d714cdf07db714fef4280cb89ec8a (patch)
tree573d3dd87842d6dc17a87fe2edda81270ec2fa29 /sys/dev/pci/drm/drm_linux.c
parentDelete a sentence about the prompt that has nothing to do with su(1). (diff)
downloadwireguard-openbsd-6784024ee26d714cdf07db714fef4280cb89ec8a.tar.xz
wireguard-openbsd-6784024ee26d714cdf07db714fef4280cb89ec8a.zip
Revert anton@ changes about read/write unlocking
https://marc.info/?l=openbsd-cvs&m=156277704122293&w=2 ok anton@
Diffstat (limited to 'sys/dev/pci/drm/drm_linux.c')
-rw-r--r--sys/dev/pci/drm/drm_linux.c6
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);
}