Re: [PATCH] Don't assume VMD sysfs path ends with a disk entry

From
Jes Sorensen <hidden>
Date
2017-01-04 13:27:36
Tomasz Majchrzak [off-list ref] writes:
From: Alexey Obitotskiy <redacted>

From: Alexey Obitotskiy <redacted>
Date: Wed, 4 Jan 2017 11:31:23 +0100

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 <redacted>
Signed-off-by: Tomasz Majchrzak <redacted>
---
 platform-intel.c | 33 +++++++++++++++++++++------------
 1 file changed, 21 insertions(+), 12 deletions(-)
Applied!

I had to fixup the commit message since your message had a mail header
from Alaexy as well.

Thanks,
Jes
Thread (1 message) 1 message, 1 author, last reply 2017-01-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help