]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super0.c
super0: fix overflow when checking max size.
authorNeilBrown <neilb@suse.de>
Thu, 20 Oct 2011 02:14:26 +0000 (13:14 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 20 Oct 2011 02:14:26 +0000 (13:14 +1100)
commit9c8c121881769c9ce77fd7d981608c976aac8b5b
treeb2650cfa8a48ead49cf294d2c537730ad9507555
parentc4acd1e5c83a7ad746e8d0a0949e097c8aaf525c
super0: fix overflow when checking max size.

We need to force multiplication to use ULL before they
get to big, else it overflows.  So move the "2ULL" to the start.

Signed-off-by: NeilBrown <neilb@suse.de>
super0.c