commit | 30730cb8c47641d1a0ac215122060a3194962448 | [log] [tgz] |
---|---|---|
author | Alexey Obitotskiy <aleksey.obitotskiy@intel.com> | Wed Jan 04 11:45:24 2017 +0100 |
committer | Jes Sorensen <Jes.Sorensen@redhat.com> | Wed Jan 04 08:26:50 2017 -0500 |
tree | a02b832ec0a27cbb89586492ef797f30999bc01d | |
parent | 466070adb88bac711e0e69b78adb32f9e2807b36 [diff] |
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>