diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2017-11-02 21:58:28 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-11-10 23:45:00 +0300 |
commit | 233978449074ca7e45d9c959f9ec612d1b852893 (patch) | |
tree | fa141e1354055cf394fca1eb9aaf16b426a5b73c /drivers/bcma | |
parent | 95b1369a9638cfa322ad1c0cde8efbe524059884 (diff) | |
download | linux-233978449074ca7e45d9c959f9ec612d1b852893.tar.xz |
dm raid: fix panic when attempting to force a raid to sync
Requesting a sync on an active raid device via a table reload
(see 'sync' parameter in Documentation/device-mapper/dm-raid.txt)
skips the super_load() call that defines the superblock size
(rdev->sb_size) -- resulting in an oops if/when super_sync()->memset()
is called.
Fix by moving the initialization of the superblock start and size
out of super_load() to the caller (analyse_superblocks).
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/bcma')
0 files changed, 0 insertions, 0 deletions