diff options
| author | Chris Webb <[email protected]> | 2022-06-01 12:03:07 +0100 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-08-02 17:14:40 -0600 |
| commit | 05ce7fb946c37fc6fc8bf14073279e570f78f69e (patch) | |
| tree | 268dc1f9fedfc1cfdf5d5d6239795bff20b2812d /scripts/const_structs.checkpatch | |
| parent | 9973f0fa7d20269fe6fefe6333997fb5914449c1 (diff) | |
md: Explicitly create command-line configured devices
Boot-time assembly of arrays with md= command-line arguments breaks when
CONFIG_BLOCK_LEGACY_AUTOLOAD is unset. md_setup_drive() in md-autodetect.c
calls blkdev_get_by_dev(), assuming this implicitly creates the block
device.
Fix this by attempting to md_alloc() the array first. As in the probe path,
ignore any error as failure is caught by blkdev_get_by_dev() anyway.
Signed-off-by: Chris Webb <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions