Module Name: src Committed By: riastradh Date: Mon Aug 27 15:24:11 UTC 2018
Modified Files: src/sys/external/bsd/drm2/linux: linux_dma_buf.c Log Message: Return the fd we just allocated. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/external/bsd/drm2/linux/linux_dma_buf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/linux/linux_dma_buf.c diff -u src/sys/external/bsd/drm2/linux/linux_dma_buf.c:1.1 src/sys/external/bsd/drm2/linux/linux_dma_buf.c:1.2 --- src/sys/external/bsd/drm2/linux/linux_dma_buf.c:1.1 Mon Aug 27 15:22:54 2018 +++ src/sys/external/bsd/drm2/linux/linux_dma_buf.c Mon Aug 27 15:24:11 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_dma_buf.c,v 1.1 2018/08/27 15:22:54 riastradh Exp $ */ +/* $NetBSD: linux_dma_buf.c,v 1.2 2018/08/27 15:24:11 riastradh Exp $ */ /*- * Copyright (c) 2018 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_dma_buf.c,v 1.1 2018/08/27 15:22:54 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_dma_buf.c,v 1.2 2018/08/27 15:24:11 riastradh Exp $"); #include <sys/types.h> #include <sys/atomic.h> @@ -119,6 +119,7 @@ dma_buf_fd(struct dma_buf *dmabuf, int f fd_affix(curproc, file, fd); fd_putfile(fd); + ret = fd; out0: return ret; }