svn commit: r354122 - stable/12/sbin/fsck_ffs

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


Author: mckusick
Date: Sun Oct 27 03:46:00 2019
New Revision: 354122
URL: https://svnweb.freebsd.org/changeset/base/354122

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

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

Modified: stable/12/sbin/fsck_ffs/suj.c
==============================================================================
--- stable/12/sbin/fsck_ffs/suj.c	Sat Oct 26 21:19:55 2019	(r354121)
+++ stable/12/sbin/fsck_ffs/suj.c	Sun Oct 27 03:46:00 2019	(r354122)
@@ -1544,7 +1544,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