Author: brueffer
Date: Sat Oct  8 12:09:57 2011
New Revision: 226149
URL: http://svn.freebsd.org/changeset/base/226149

Log:
  Fix an infinite loop in siba_bwn_suspend().
  
  CID:          3536
  Found with:   Coverity Prevent(tm)
  MFC after:    1 week

Modified:
  head/sys/dev/siba/siba_bwn.c

Modified: head/sys/dev/siba/siba_bwn.c
==============================================================================
--- head/sys/dev/siba/siba_bwn.c        Sat Oct  8 11:51:48 2011        
(r226148)
+++ head/sys/dev/siba/siba_bwn.c        Sat Oct  8 12:09:57 2011        
(r226149)
@@ -206,7 +206,7 @@ siba_bwn_suspend(device_t dev)
        for (i = 0 ; i < devcnt ; i++) {
                error = DEVICE_SUSPEND(devlistp[i]);
                if (error) {
-                       for (j = 0; j < i; i++)
+                       for (j = 0; j < i; j++)
                                DEVICE_RESUME(devlistp[j]);
                        return (error);
                }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to