summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2008-11-08 01:27:52 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2008-11-08 01:27:52 +0000
commit009f098a4f34f3eb066dfa955660f53344322f77 (patch)
treeef3c9cb9dd91fdf413b83c0c1d39426d18db85ad
parent5307588495022b786c8f24ae0731ece74def28ff (diff)
fix potential null dereference.
Found by LLVM/Clang Static Analyzer. ok krw@ pedro@
-rw-r--r--sys/isofs/udf/udf_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isofs/udf/udf_vnops.c b/sys/isofs/udf/udf_vnops.c
index 52924f2d59d..d5acbe25d8c 100644
--- a/sys/isofs/udf/udf_vnops.c
+++ b/sys/isofs/udf/udf_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udf_vnops.c,v 1.33 2008/06/14 10:55:21 mk Exp $ */
+/* $OpenBSD: udf_vnops.c,v 1.34 2008/11/08 01:27:51 chl Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -134,7 +134,7 @@ udf_hashins(struct unode *up)
mtx_enter(&ump->um_hashmtx);
lh = &ump->um_hashtbl[up->u_ino & ump->um_hashsz];
if (lh == NULL)
- LIST_INIT(lh);
+ panic("hash entry is NULL, up->u_ino = %d", up->u_ino);
LIST_INSERT_HEAD(lh, up, u_le);
mtx_leave(&ump->um_hashmtx);