diff options
| author | Yufen Yu <yuyufen@huawei.com> | 2019-04-02 09:22:14 +0300 |
|---|---|---|
| committer | Song Liu <songliubraving@fb.com> | 2019-04-11 01:26:08 +0300 |
| commit | ee37e62191a59d253fc916b9fc763deb777211e2 (patch) | |
| tree | 09696aa3b9f5d4736149fa19fd8427e80ed858a0 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 0d413829bd20d5563c2c3287479a7348810cb13f (diff) | |
| download | linux-ee37e62191a59d253fc916b9fc763deb777211e2.tar.xz | |
md: add mddev->pers to avoid potential NULL pointer dereference
When doing re-add, we need to ensure rdev->mddev->pers is not NULL,
which can avoid potential NULL pointer derefence in fallowing
add_bound_rdev().
Fixes: a6da4ef85cef ("md: re-add a failed disk")
Cc: Xiao Ni <xni@redhat.com>
Cc: NeilBrown <neilb@suse.com>
Cc: <stable@vger.kernel.org> # 4.4+
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
