Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2019 22:23:59 +0000 (UTC)
From:      Kirk McKusick <mckusick@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353903 - head/sbin/fsck_ffs
Message-ID:  <201910222223.x9MMNx6J077929@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mckusick
Date: Tue Oct 22 22:23:59 2019
New Revision: 353903
URL: https://svnweb.freebsd.org/changeset/base/353903

Log:
  Replace an uninitialized variable with the correct element from the
  superblock when doing recovery with journalled soft updates.
  
  Reported by:  Chuck Silvers
  MFC after:    3 days
  Sponsored by: Netflix

Modified:
  head/sbin/fsck_ffs/suj.c

Modified: head/sbin/fsck_ffs/suj.c
==============================================================================
--- head/sbin/fsck_ffs/suj.c	Tue Oct 22 21:46:03 2019	(r353902)
+++ head/sbin/fsck_ffs/suj.c	Tue Oct 22 22:23:59 2019	(r353903)
@@ -1555,7 +1555,7 @@ ino_trunc(ino_t ino, off_t size)
 		/* If we freed everything in this indirect free the indir. */
 		if (lastlbn > lbn)
 			continue;
-		blk_free(DIP(ip, di_ib[i]), 0, frags);
+		blk_free(DIP(ip, di_ib[i]), 0, fs->fs_frag);
 		DIP_SET(ip, di_ib[i], 0);
 	}
 	ino_dirty(ino);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910222223.x9MMNx6J077929>