]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Manage.c
Manage: Manage_add(): Fix potential NULL pointer dereference
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 7 Mar 2016 16:49:03 +0000 (11:49 -0500)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 8 Mar 2016 17:22:26 +0000 (12:22 -0500)
commit2a1990c0f4bbb00920fafe7c8eec1b8837595d48
treea95d76b7100e773c17930e07f6ba364c362b7afc
parent30e19bf805563305068ec856ab24cf2f350c44f8
Manage: Manage_add(): Fix potential NULL pointer dereference

sysfs_read() may return NULL, so we should check the validity of the
pointer before dereferencing it.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Manage.c