]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Manage.c
Manage/stop: guard against 'completed' being too large.
authorNeilBrown <neilb@suse.de>
Mon, 6 Jul 2015 03:33:20 +0000 (13:33 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 6 Jul 2015 03:33:20 +0000 (13:33 +1000)
commit30ddba7de56f598f2ebb5a8a36c7ee8282a54dbd
treea9f299f178d33ffff30e41e33bf2e45e3968735c
parentd3f6cf4f9bf670d36f51a8c0825755523fa6197c
Manage/stop: guard against 'completed' being too large.

A race can allow 'completed' to read as 2^63-1, which takes
a long time to count up to.
So guard against that possibility.

Signed-off-by: NeilBrown <neilb@suse.com>
Manage.c