Panic on an unlikely error condition. CID 177.

This commit is contained in:
cube 2006-03-19 23:36:10 +00:00
parent e50e4ee4b2
commit 6a6299eb8f
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sem.c,v 1.20 2006/03/19 23:12:59 cube Exp $ */
/* $NetBSD: sem.c,v 1.21 2006/03/19 23:36:10 cube Exp $ */
/*
* Copyright (c) 1992, 1993
@ -1109,6 +1109,9 @@ remove_devi(struct devi *i)
struct deva *iba;
f = ht_lookup(devitab, i->i_name);
if (f == NULL)
panic("remove_devi(): instance %s disappeared from devitab",
i->i_name);
/*
* We have the device instance, i.