From 6325370974e72f62bbca39acf1eeacbcd75edad7 Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 12 Aug 2018 19:05:37 +0000 Subject: [PATCH] Drop reference to dmabuf "file" as fnew() returns one that has two references. ok visa@, deraadt@ --- sys/dev/pci/drm/drm_linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 * Copyright (c) 2015, 2016 Mark Kettenis @@ -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; } -- 2.20.1