]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ec6f6049253b8184b90a0c79d28bd68ff5823b4
treea5f27c4adf21b06de70fea027b212666d3424080
parent8d7f9ded089de640f5a4e4cb0276ccf23f166ec0
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