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/drm drm: Fix sign error in comparison ...
details: https://anonhg.NetBSD.org/src/rev/0d1052089258
branches: trunk
changeset: 1028642:0d1052089258
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:34:20 2021 +0000
description:
drm: Fix sign error in comparison for vma lookup.
diffstat:
sys/external/bsd/drm2/drm/drm_vma_manager.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b095fc247dbf -r 0d1052089258 sys/external/bsd/drm2/drm/drm_vma_manager.c
--- a/sys/external/bsd/drm2/drm/drm_vma_manager.c Sun Dec 19 11:34:14 2021 +0000
+++ b/sys/external/bsd/drm2/drm/drm_vma_manager.c Sun Dec 19 11:34:20 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_vma_manager.c,v 1.6 2021/12/19 01:02:02 riastradh Exp $ */
+/* $NetBSD: drm_vma_manager.c,v 1.7 2021/12/19 11:34:20 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_vma_manager.c,v 1.6 2021/12/19 01:02:02 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_vma_manager.c,v 1.7 2021/12/19 11:34:20 riastradh Exp $");
#include <sys/kmem.h>
#include <sys/rbtree.h>
@@ -233,7 +233,7 @@
if (node == NULL)
return NULL;
KASSERT(node->von_startpage <= startpage);
- if (npages < node->von_npages)
+ if (node->von_npages < npages)
return NULL;
if (node->von_npages - npages < startpage - node->von_startpage)
return NULL;
Home |
Main Index |
Thread Index |
Old Index