md/raid5: cap worker count
authorShaohua Li <shli@fb.com>
Thu, 21 Sep 2017 18:03:52 +0000 (11:03 -0700)
committerShaohua Li <shli@fb.com>
Thu, 28 Sep 2017 03:08:44 +0000 (20:08 -0700)
commit7d5d7b5058fbd638914e42504677141a69f43011
tree0291889463a5dbd06ae840cdb9e553f76499fcd1
parentc4d6a1b8e8ea79c439a4871cba540443c9eb13b9
md/raid5: cap worker count

static checker reports a potential integer overflow. Cap the worker count to
avoid the overflow.

Reported:-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5.c