• NeilBrown's avatar
    md/bitmap: ensure to load bitmap when creating via sysfs. · 4474ca42
    NeilBrown authored
    When commit 69e51b44 (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: default avatarNeilBrown <neilb@suse.de>
    4474ca42
bitmap.c 55.1 KB