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/dist/drm Convert back to int again so ...



details:   https://anonhg.NetBSD.org/src/rev/936a20eda877
branches:  trunk
changeset: 1027841:936a20eda877
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 00:56:09 2021 +0000

description:
Convert back to int again so this comparison makes sense.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_context.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 158108868b22 -r 936a20eda877 sys/external/bsd/drm2/dist/drm/drm_context.c
--- a/sys/external/bsd/drm2/dist/drm/drm_context.c      Sun Dec 19 00:56:01 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_context.c      Sun Dec 19 00:56:09 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_context.c,v 1.7 2021/12/18 23:44:57 riastradh Exp $        */
+/*     $NetBSD: drm_context.c,v 1.8 2021/12/19 00:56:09 riastradh Exp $        */
 
 /*
  * Legacy: Generic DRM Contexts
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_context.c,v 1.7 2021/12/18 23:44:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_context.c,v 1.8 2021/12/19 00:56:09 riastradh Exp $");
 
 #include <linux/slab.h>
 #include <linux/uaccess.h>
@@ -389,7 +389,7 @@
                tmp_handle = drm_legacy_ctxbitmap_next(dev);
        }
        DRM_DEBUG("%d\n", tmp_handle);
-       if (tmp_handle < 0) {
+       if ((int)ctx->handle < 0) {
                DRM_DEBUG("Not enough free contexts.\n");
                /* Should this return -EBUSY instead? */
                return tmp_handle;



Home | Main Index | Thread Index | Old Index