]> granicus.if.org Git - zfs/commitdiff
Correctly handle division on 32-bit RHEL5 systems by returning dividend.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 1 Dec 2009 23:53:28 +0000 (15:53 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 1 Dec 2009 23:53:28 +0000 (15:53 -0800)
module/spl/spl-generic.c

index 19cdf50462a1af08a5b786b9715afa3bf3e239f1..a13b978cbab236e83b61f2e685892a1751c84801 100644 (file)
@@ -116,7 +116,9 @@ uint64_t __udivdi3(uint64_t dividend, uint64_t divisor)
        } else
                d = divisor;
 
-       return do_div(dividend, d);
+       do_div(dividend, d);
+
+       return dividend;
 #endif /* HAVE_DIV64_64, HAVE_DIV64_U64 */
 }
 EXPORT_SYMBOL(__udivdi3);