Module Name: src Committed By: reinoud Date: Wed Dec 3 21:34:55 UTC 2014
Modified Files: src/sys/fs/udf: udf_allocation.c Log Message: Relax the KASSERT since an equal size is no issue To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/fs/udf/udf_allocation.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/fs/udf/udf_allocation.c diff -u src/sys/fs/udf/udf_allocation.c:1.36 src/sys/fs/udf/udf_allocation.c:1.37 --- src/sys/fs/udf/udf_allocation.c:1.36 Wed Oct 30 08:41:38 2013 +++ src/sys/fs/udf/udf_allocation.c Wed Dec 3 21:34:55 2014 @@ -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 @@ udf_shrink_node(struct udf_node *udf_nod 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! */