On Wed, Oct 30, 2019 at 3:29 AM Yufen Yu <yuyufen@xxxxxxxxxx> wrote: > > we need to gurantee 'desc_nr' valid before access array > of sb->dev_roles. > > In addition, we should avoid .load_super always return '0' > when level is LEVEL_MULTIPATH, which is not expected. > > Reported-by: coverity-bot <keescook+coverity-bot@xxxxxxxxxxxx> > Addresses-Coverity-ID: 1487373 ("Memory - illegal accesses") > Fixes: 6a5cb53aaa4e ("md: no longer compare spare disk superblock events in super_load") > Signed-off-by: Yufen Yu <yuyufen@xxxxxxxxxx> Applied to md-next. Thanks for the fix! Song