Author: pjd
Date: Wed Oct 19 23:33:48 2011
New Revision: 226550
URL: http://svn.freebsd.org/changeset/base/226550

Log:
  Initialize 'rc' properly before using it. This error could lead to infinite
  loop when data reconstruction was needed.
  
  MFC after:    3 days

Modified:
  head/sys/cddl/boot/zfs/zfssubr.c

Modified: head/sys/cddl/boot/zfs/zfssubr.c
==============================================================================
--- head/sys/cddl/boot/zfs/zfssubr.c    Wed Oct 19 23:31:50 2011        
(r226549)
+++ head/sys/cddl/boot/zfs/zfssubr.c    Wed Oct 19 23:33:48 2011        
(r226550)
@@ -1628,7 +1628,9 @@ reconstruct:
 
        n = 0;
        for (c = 0; c < rm->rm_cols; c++) {
-               if (rm->rm_col[c].rc_tried)
+               rc = &rm->rm_col[c];
+
+               if (rc->rc_tried)
                        continue;
 
                cvd = vdev_child(vd, rc->rc_devidx);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to