diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-30 16:37:58 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-30 16:37:58 +0000 |
commit | c4d144f99675fb8c8dea2c93c6ec0e19c0a79356 (patch) | |
tree | 961e14e5a74628ee1caee3cbb446ee3567ad5f56 /sys/ufs/ffs | |
parent | d472bc02253ff3fddea9c03331b9a5e114f22f79 (diff) |
Don't brelse a random pointer in ffs_realloccg when filesystem is full
and bpp == NULL.
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r-- | sys/ufs/ffs/ffs_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index a53d87828c3..92b4d993c2d 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_alloc.c,v 1.36 2001/11/27 05:27:12 art Exp $ */ +/* $OpenBSD: ffs_alloc.c,v 1.37 2001/11/30 16:37:57 art Exp $ */ /* $NetBSD: ffs_alloc.c,v 1.11 1996/05/11 18:27:09 mycroft Exp $ */ /* @@ -170,7 +170,7 @@ ffs_realloccg(ip, lbprev, bpref, osize, nsize, cred, bpp, blknop) ufs_daddr_t *blknop; { struct fs *fs; - struct buf *bp; + struct buf *bp = NULL; ufs_daddr_t quota_updated = 0; int cg, request, error; daddr_t bprev, bno; |