diff options
author | 2018-08-12 19:05:37 +0000 | |
---|---|---|
committer | 2018-08-12 19:05:37 +0000 | |
commit | 6325370974e72f62bbca39acf1eeacbcd75edad7 (patch) | |
tree | 10263831cc382dc8e85dd626cbdb1d6a2fd38d02 | |
parent | Make ifconfig's -joinlist command work as advertised. (diff) | |
download | wireguard-openbsd-6325370974e72f62bbca39acf1eeacbcd75edad7.tar.xz wireguard-openbsd-6325370974e72f62bbca39acf1eeacbcd75edad7.zip |
Drop reference to dmabuf "file" as fnew() returns one that has two
references.
ok visa@, deraadt@
-rw-r--r-- | sys/dev/pci/drm/drm_linux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm_linux.c b/sys/dev/pci/drm/drm_linux.c index 6564fd89b2a..a342ebc2ac0 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.26 2018/07/03 20:40:25 kettenis Exp $ */ +/* $OpenBSD: drm_linux.c,v 1.27 2018/08/12 19:05:37 kettenis Exp $ */ /* * Copyright (c) 2013 Jonathan Gray <jsg@openbsd.org> * Copyright (c) 2015, 2016 Mark Kettenis <kettenis@openbsd.org> @@ -912,6 +912,7 @@ dma_buf_export(const struct dma_buf_export_info *info) dmabuf->size = info->size; dmabuf->file = fp; fp->f_data = dmabuf; + FRELE(fp, p); return dmabuf; } |