Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2019 03:46:02 +0000 (UTC)
From:      Kirk McKusick <mckusick@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r354122 - stable/12/sbin/fsck_ffs
Message-ID:  <201910270346.x9R3k2aW020135@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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