summaryrefslogtreecommitdiff
path: root/sys/fs/udf
diff options
context:
space:
mode:
authorreinoud <reinoud@NetBSD.org>2022-01-28 20:00:52 +0000
committerreinoud <reinoud@NetBSD.org>2022-01-28 20:00:52 +0000
commit29ec09d42e0ea96efdfd0bc1b485b2693b76fc51 (patch)
tree457293956814b7bf972db33d7a4efdf3aaa59808 /sys/fs/udf
parent24d9d8cee35f95ea3deda18d2675280114941af3 (diff)
On freeing a virtual address in the VAT, use the correct value; this might
confuse other implementations who can reject the VAT on this.
Diffstat (limited to 'sys/fs/udf')
-rw-r--r--sys/fs/udf/udf_allocation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/udf/udf_allocation.c b/sys/fs/udf/udf_allocation.c
index 3c4c1759722..b11f4f8d403 100644
--- a/sys/fs/udf/udf_allocation.c
+++ b/sys/fs/udf/udf_allocation.c
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_allocation.c,v 1.44 2021/09/03 21:55:00 andvar Exp $ */
+/* $NetBSD: udf_allocation.c,v 1.45 2022/01/28 20:00:52 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.44 2021/09/03 21:55:00 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_allocation.c,v 1.45 2022/01/28 20:00:52 reinoud Exp $");
#endif /* not lint */
@@ -864,7 +864,7 @@ udf_search_free_vatloc(struct udf_mount *ump, uint32_t *lbnumres)
}
/* mark entry with initialiser just in case */
- lb_map = udf_rw32(0xfffffffe);
+ lb_map = udf_rw32(0xffffffff);
udf_vat_write(ump->vat_node, (uint8_t *) &lb_map, 4,
ump->vat_offset + lb_num *4);
ump->vat_last_free_lb = lb_num;