summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorYufen Yu <yuyufen@huawei.com>2019-04-02 14:22:14 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-11 12:23:44 +0200
commitbc065776c31ee14347822c6fe9b8cfbc392e5959 (patch)
treee46aada7794f8138a110997a450bf4d6624e50cd /tools/perf/scripts/python/sctop.py
parentade291d2230a3a642918ab4a173bc4b5960d5159 (diff)
md: add mddev->pers to avoid potential NULL pointer dereference
commit ee37e62191a59d253fc916b9fc763deb777211e2 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions