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/include/linux Fix sense of ka...
details: https://anonhg.NetBSD.org/src/rev/c096e93c679b
branches: riastradh-drm2
changeset: 788482:c096e93c679b
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 04:00:19 2013 +0000
description:
Fix sense of kassert in kcalloc.
diffstat:
sys/external/bsd/drm2/include/linux/slab.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 9489a33f5d1c -r c096e93c679b sys/external/bsd/drm2/include/linux/slab.h
--- a/sys/external/bsd/drm2/include/linux/slab.h Wed Jul 24 04:00:02 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/slab.h Wed Jul 24 04:00:19 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: slab.h,v 1.1.2.6 2013/07/24 03:30:42 riastradh Exp $ */
+/* $NetBSD: slab.h,v 1.1.2.7 2013/07/24 04:00:19 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
static inline void *
kcalloc(size_t n, size_t size, gfp_t gfp)
{
- KASSERT((SIZE_MAX / n) <= size);
+ KASSERT(size <= (SIZE_MAX / n));
return malloc((n * size), M_TEMP, (linux_gfp_to_malloc(gfp) | M_ZERO));
}
Home |
Main Index |
Thread Index |
Old Index