svn commit: r354123 - stable/11/sbin/fsck_ffs

Kirk McKusick mckusick at FreeBSD.org
Sun Oct 27 03:47:17 UTC 2019


Author: mckusick
Date: Sun Oct 27 03:47:16 2019
New Revision: 354123
URL: https://svnweb.freebsd.org/changeset/base/354123

Log:
  MFC of 353903
  
  Fix uninitialized variable in SUJ recovery.

Modified:
  stable/11/sbin/fsck_ffs/suj.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sbin/fsck_ffs/suj.c
==============================================================================
--- stable/11/sbin/fsck_ffs/suj.c	Sun Oct 27 03:46:00 2019	(r354122)
+++ stable/11/sbin/fsck_ffs/suj.c	Sun Oct 27 03:47:16 2019	(r354123)
@@ -1566,7 +1566,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);


More information about the svn-src-all mailing list