diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-08-12 19:05:38 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-08-12 19:05:38 +0000 |
commit | 7cc13c9623741743b008c80b23272456ea11652a (patch) | |
tree | aef5285612e65d4e9631d551a963b22cd901b13f /sys/dev/pci | |
parent | 72b9a4ae4f241b8ea3ce73e6761d7d95f668e3f1 (diff) |
Drop reference to dmabuf "file" as fnew() returns one that has two
references.
ok visa@, deraadt@
Diffstat (limited to 'sys/dev/pci')
-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; } |