drbd: implicitly truncate cpu-mask
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 19 May 2014 07:52:02 +0000 (09:52 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Jul 2014 16:35:22 +0000 (18:35 +0200)
commit1e39152fea2dccd1af6479aa1a036201886f0743
treea5f27c4adf21b06de70fea027b212666d3424080
parent193cb00ce377fd672526b5ad065c4de52f429ea1
drbd: implicitly truncate cpu-mask

Don't error out with misleading "out of memory"
if the cpu-mask has more bits set than there are CPUs.
Just truncate to nr_cpu_ids implicitly.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_main.c