Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 May 2019 16:57:03 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347159 - head/sys/ufs/ufs
Message-ID:  <201905051657.x45Gv3cB069803@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Sun May  5 16:57:03 2019
New Revision: 347159
URL: https://svnweb.freebsd.org/changeset/base/347159

Log:
  Ensure that error is initialized in ufs_bmap_seekdata().
  
  Reported and tested by:	jhibbits
  MFC with:	r346932
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/ufs/ufs/ufs_bmap.c

Modified: head/sys/ufs/ufs/ufs_bmap.c
==============================================================================
--- head/sys/ufs/ufs/ufs_bmap.c	Sun May  5 15:47:21 2019	(r347158)
+++ head/sys/ufs/ufs/ufs_bmap.c	Sun May  5 16:57:03 2019	(r347159)
@@ -354,6 +354,7 @@ ufs_bmap_seekdata(vp, offp)
 	int error, num, num1, off;
 
 	bp = NULL;
+	error = 0;
 	ip = VTOI(vp);
 	mp = vp->v_mount;
 	ump = VFSTOUFS(mp);



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