Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/linux Return the fd we just allocated.



details:   https://anonhg.NetBSD.org/src/rev/45135cdc9a1a
branches:  trunk
changeset: 366399:45135cdc9a1a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 15:24:11 2018 +0000

description:
Return the fd we just allocated.

diffstat:

 sys/external/bsd/drm2/linux/linux_dma_buf.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 624fb1841289 -r 45135cdc9a1a sys/external/bsd/drm2/linux/linux_dma_buf.c
--- a/sys/external/bsd/drm2/linux/linux_dma_buf.c       Mon Aug 27 15:23:57 2018 +0000
+++ b/sys/external/bsd/drm2/linux/linux_dma_buf.c       Mon Aug 27 15:24:11 2018 +0000
@@ -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 @@
        fd_affix(curproc, file, fd);
 
        fd_putfile(fd);
+       ret = fd;
 out0:  return ret;
 }
 



Home | Main Index | Thread Index | Old Index