options: catch division by zero in setting CPU affinity
authorVincent Fu <vincent.fu@wdc.com>
Tue, 19 Feb 2019 21:44:08 +0000 (16:44 -0500)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Feb 2019 17:55:32 +0000 (10:55 -0700)
commit3a294b8704a4125f12e3c3dec36667e68d821be0
tree0949a97004b10227a7a4ae675002c0c545ec1e5e
parent298d751e5f7dcde630d90a38f9ad5ab6670483a1
options: catch division by zero in setting CPU affinity

Catch a division by zero and abort with a helpful message instead of a
signal 8 floating point error.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
options.c