From: NeilBrown Date: Thu, 1 Oct 2015 06:03:38 +0000 (+1000) Subject: md/bitmap: don't pass -1 to bitmap_storage_alloc. X-Git-Tag: omap-for-v4.4/cleanup-pt1~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da6fb7a9e5bd6f04f7e15070f630bdf1ea502841;p=pandora-kernel.git md/bitmap: don't pass -1 to bitmap_storage_alloc. Passing -1 to bitmap_storage_alloc() causes page->index to be set to -1, which is quite problematic. So only pass ->cluster_slot if mddev_is_clustered(). Fixes: b97e92574c0b ("Use separate bitmaps for each nodes in the cluster") Cc: stable@vger.kernel.org (v4.1+) Signed-off-by: NeilBrown --- Reading git-diff-tree failed