]> git.neil.brown.name Git - mdadm.git/commit
Don't assume VMD sysfs path ends with a disk entry
authorAlexey Obitotskiy <aleksey.obitotskiy@intel.com>
Wed, 4 Jan 2017 10:45:24 +0000 (11:45 +0100)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 4 Jan 2017 13:26:50 +0000 (08:26 -0500)
commit30730cb8c47641d1a0ac215122060a3194962448
treea02b832ec0a27cbb89586492ef797f30999bc01d
parent466070adb88bac711e0e69b78adb32f9e2807b36
Don't assume VMD sysfs path ends with a disk entry

When VMD is enabled but no drive is attached to the PCIe port, mdadm
crashes trying to parse the path. Skip entry if valid path has not been
returned. Do it early to avoid unnecessary memory allocation.

Signed-off-by: Alexey Obitotskiy <aleksey.obitotskiy@intel.com>
Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
platform-intel.c