]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix build error in queue-2.6.27/md-linear-fix-a-division-by-zero-bug-for-very-small...
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 Nov 2008 23:44:58 +0000 (15:44 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 Nov 2008 23:44:58 +0000 (15:44 -0800)
queue-2.6.27/md-linear-fix-a-division-by-zero-bug-for-very-small-arrays.patch

index 56733721ebf42a42b3be458c8c43bf5cce50df2a..ac7c827626646efd17676afef153549d0e3e6289 100644 (file)
@@ -38,8 +38,8 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  
        min_spacing = conf->array_sectors / 2;
        sector_div(min_spacing, PAGE_SIZE/sizeof(struct dev_info *));
-+      if (min_sectors == 0)
-+              min_sectors = 1;
++      if (min_spacing == 0)
++              min_spacing = 1;
  
        /* min_spacing is the minimum spacing that will fit the hash
         * table in one PAGE.  This may be much smaller than needed.