Source-Changes-HG archive

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

[src/riastradh-drm2]: src/sys/external/bsd/drm2/linux Actually return the new...



details:   https://anonhg.NetBSD.org/src/rev/d9a469f9ae4b
branches:  riastradh-drm2
changeset: 788491:d9a469f9ae4b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 04:02:43 2013 +0000

description:
Actually return the new id in idr_get_new_above.

diffstat:

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

diffs (26 lines):

diff -r 57c9bd92b819 -r d9a469f9ae4b sys/external/bsd/drm2/linux/linux_idr.c
--- a/sys/external/bsd/drm2/linux/linux_idr.c   Wed Jul 24 04:02:28 2013 +0000
+++ b/sys/external/bsd/drm2/linux/linux_idr.c   Wed Jul 24 04:02:43 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_idr.c,v 1.1.2.7 2013/07/24 03:16:32 riastradh Exp $      */
+/*     $NetBSD: linux_idr.c,v 1.1.2.8 2013/07/24 04:02:43 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_idr.c,v 1.1.2.7 2013/07/24 03:16:32 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_idr.c,v 1.1.2.8 2013/07/24 04:02:43 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -216,6 +216,7 @@
 
        rw_exit(&idr->idr_lock);
 
+       *id = want_id;
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index