svn commit: r347159 - head/sys/ufs/ufs

Mark Johnston markj at FreeBSD.org
Sun May 5 16:57:04 UTC 2019


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);


More information about the svn-src-all mailing list