]> git.baikalelectronics.ru Git - kernel.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)
committerNeilBrown <neilb@suse.de>
Mon, 19 Mar 2012 01:46:37 +0000 (12:46 +1100)
commit72e3c1236a0d98964fb18f1084339255bd6ff2df
treedb451c8fad37b281ddbf1d00a779257537cc61ff
parentc5b9dc1ee6221ce9ff23cac87b5b62f3897b5276
md/bitmap: ensure to load bitmap when creating via sysfs.

When commit 8a90597c580e9a (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.
Cc: stable@vger.kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/bitmap.c