summaryrefslogtreecommitdiff
path: root/sbin/fsck_ext2fs
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-05-15 19:37:56 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-05-15 19:37:56 +0000
commit7500d969b456cb97d6d482658da8dd1701b24890 (patch)
treeda9a015a9d403a42e729286cdc6dd573c6293fe1 /sbin/fsck_ext2fs
parentdd8efeb8ea9d7791b0917a7e0af21555c2a4939b (diff)
do the same as _ffs
Diffstat (limited to 'sbin/fsck_ext2fs')
-rw-r--r--sbin/fsck_ext2fs/inode.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/fsck_ext2fs/inode.c b/sbin/fsck_ext2fs/inode.c
index 2d50031ba6e..c3bd1179b81 100644
--- a/sbin/fsck_ext2fs/inode.c
+++ b/sbin/fsck_ext2fs/inode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inode.c,v 1.6 2000/04/26 23:26:06 jasoni Exp $ */
+/* $OpenBSD: inode.c,v 1.7 2001/05/15 19:37:55 mickey Exp $ */
/* $NetBSD: inode.c,v 1.1 1997/06/11 11:21:49 bouyer Exp $ */
/*
@@ -42,7 +42,7 @@ static char sccsid[] = "@(#)inode.c 8.5 (Berkeley) 2/8/95";
#if 0
static char rcsid[] = "$NetBSD: inode.c,v 1.1 1997/06/11 11:21:49 bouyer Exp $";
#else
-static char rcsid[] = "$OpenBSD: inode.c,v 1.6 2000/04/26 23:26:06 jasoni Exp $";
+static char rcsid[] = "$OpenBSD: inode.c,v 1.7 2001/05/15 19:37:55 mickey Exp $";
#endif
#endif
#endif /* not lint */
@@ -409,8 +409,10 @@ cacheino(dp, inumber)
blks = NDADDR + NIADDR;
inp = (struct inoinfo *)
malloc(sizeof(*inp) + (blks - 1) * sizeof(daddr_t));
- if (inp == NULL)
+ if (inp == NULL) {
+ errexit("cannot malloc inode cache entry\n");
return;
+ }
inpp = &inphead[inumber % numdirs];
inp->i_nexthash = *inpp;
*inpp = inp;