From 7500d969b456cb97d6d482658da8dd1701b24890 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 15 May 2001 19:37:56 +0000 Subject: do the same as _ffs --- sbin/fsck_ext2fs/inode.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sbin/fsck_ext2fs') 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; -- cgit v1.2.3