diff options
author | Yufen Yu <yuyufen@huawei.com> | 2019-10-30 18:47:02 +0800 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2019-11-11 16:32:22 -0800 |
commit | 228fc7d76db68732677230a3c64337908fd298e3 (patch) | |
tree | 6c92664f7db4b1f0e5a687b7415a356e38c6c8ae /MAINTAINERS | |
parent | 5fa4f8bac9516b988d2ccd3f05f4267f8da24269 (diff) |
md: avoid invalid memory access for array sb->dev_roles
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@chromium.org>
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@huawei.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions