From: kettenis Date: Sun, 12 Aug 2018 19:05:37 +0000 (+0000) Subject: Drop reference to dmabuf "file" as fnew() returns one that has two X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6325370974e72f62bbca39acf1eeacbcd75edad7;p=openbsd Drop reference to dmabuf "file" as fnew() returns one that has two references. ok visa@, deraadt@ --- 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; }