Module Name:    src
Committed By:   reinoud
Date:           Tue May 19 16:06:56 UTC 2009

Modified Files:
        src/sys/fs/udf: udf_subr.c

Log Message:
On creation of a new node, don't forget to set the length of the allocated
space in the right endian!


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/fs/udf/udf_subr.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_subr.c
diff -u src/sys/fs/udf/udf_subr.c:1.88 src/sys/fs/udf/udf_subr.c:1.89
--- src/sys/fs/udf/udf_subr.c:1.88	Tue May 19 15:08:42 2009
+++ src/sys/fs/udf/udf_subr.c	Tue May 19 16:06:56 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_subr.c,v 1.88 2009/05/19 15:08:42 reinoud Exp $ */
+/* $NetBSD: udf_subr.c,v 1.89 2009/05/19 16:06:56 reinoud Exp $ */
 
 /*
  * Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.88 2009/05/19 15:08:42 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.89 2009/05/19 16:06:56 reinoud Exp $");
 #endif /* not lint */
 
 
@@ -5596,7 +5596,7 @@
 
 	/* initialise pointer to location */
 	memset(&node_icb_loc, 0, sizeof(struct long_ad));
-	node_icb_loc.len = lb_size;
+	node_icb_loc.len = udf_rw32(lb_size);
 	node_icb_loc.loc.lb_num   = udf_rw32(lb_num);
 	node_icb_loc.loc.part_num = udf_rw16(vpart_num);
 

Reply via email to