Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/udf Relax the KASSERT since an equal size is no issue



details:   https://anonhg.NetBSD.org/src/rev/fc1995bbdd2f
branches:  trunk
changeset: 334728:fc1995bbdd2f
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Wed Dec 03 21:34:55 2014 +0000

description:
Relax the KASSERT since an equal size is no issue

diffstat:

 sys/fs/udf/udf_allocation.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 29e368d9ba2b -r fc1995bbdd2f sys/fs/udf/udf_allocation.c
--- a/sys/fs/udf/udf_allocation.c       Wed Dec 03 20:36:33 2014 +0000
+++ b/sys/fs/udf/udf_allocation.c       Wed Dec 03 21:34:55 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_allocation.c,v 1.36 2013/10/30 08:41:38 mrg Exp $ */
+/* $NetBSD: udf_allocation.c,v 1.37 2014/12/03 21:34:55 reinoud Exp $ */
 
 /*
  * Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_allocation.c,v 1.36 2013/10/30 08:41:38 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_allocation.c,v 1.37 2014/12/03 21:34:55 reinoud Exp $");
 #endif /* not lint */
 
 
@@ -2954,7 +2954,7 @@
                error = 0;
 
                /* clear the space in the descriptor */
-               KASSERT(old_size > new_size);
+               KASSERT(old_size >= new_size);
                memset(data_pos + new_size, 0, old_size - new_size);
 
                /* TODO zero appened space in buffer! */



Home | Main Index | Thread Index | Old Index