]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
md/bitmap: ensure to load bitmap when creating via sysfs.
authorNeilBrown <neilb@suse.de>
Mon, 19 Mar 2012 01:46:37 +0000 (12:46 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 17:31:55 +0000 (10:31 -0700)
commit87567f2eb2ef89fca77d97b36d854d34cb565ca0
tree60e3ebf10ac0dc32b08ac46b592d94fc5f20a534
parentdd0ae302075807d9cea7dfe03b7db59aabb0acca
md/bitmap: ensure to load bitmap when creating via sysfs.

commit 4474ca42e2577563a919fd3ed782e2ec55bf11a2 upstream.

When commit 69e51b449d383e (md/bitmap:  separate out loading a bitmap...)
created bitmap_load, it missed calling it after bitmap_create when a
bitmap is created through the sysfs interface.
So if a bitmap is added this way, we don't allocate memory properly
and can crash.

This is suitable for any -stable release since 2.6.35.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/bitmap.c