Module Name: src Committed By: riastradh Date: Wed May 22 15:47:18 UTC 2024
Modified Files: src/sys/external/bsd/drm2/dist/drm: drm_gem.c Log Message: drm_gem.c: Fix sense of assertion. This is the opposite of WARN_ON. Noted by rjs@. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/external/bsd/drm2/dist/drm/drm_gem.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/dist/drm/drm_gem.c diff -u src/sys/external/bsd/drm2/dist/drm/drm_gem.c:1.23 src/sys/external/bsd/drm2/dist/drm/drm_gem.c:1.24 --- src/sys/external/bsd/drm2/dist/drm/drm_gem.c:1.23 Sun Dec 19 11:58:49 2021 +++ src/sys/external/bsd/drm2/dist/drm/drm_gem.c Wed May 22 15:47:18 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: drm_gem.c,v 1.23 2021/12/19 11:58:49 riastradh Exp $ */ +/* $NetBSD: drm_gem.c,v 1.24 2024/05/22 15:47:18 riastradh Exp $ */ /* * Copyright © 2008 Intel Corporation @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: drm_gem.c,v 1.23 2021/12/19 11:58:49 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: drm_gem.c,v 1.24 2024/05/22 15:47:18 riastradh Exp $"); #include <linux/types.h> #include <linux/slab.h> @@ -605,7 +605,7 @@ drm_gem_get_pages(struct drm_gem_object unsigned i, npages; int ret; - KASSERT((obj->size & (PAGE_SIZE - 1)) != 0); + KASSERT((obj->size & (PAGE_SIZE - 1)) == 0); npages = obj->size >> PAGE_SHIFT; pages = kvmalloc_array(npages, sizeof(*pages), GFP_KERNEL);