Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2019 03:47:16 +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-11@freebsd.org
Subject:   svn commit: r354123 - stable/11/sbin/fsck_ffs
Message-ID:  <201910270347.x9R3lGuZ020242@repo.freebsd.org>

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



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