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

- From: Jes Sorensen \<hidden\>
- Date: 2017-01-04 13:27:36 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2017/01/6634073
- Thread: https://ratatoskr.run/linux-raid/2017/01/6634073/t.md

```text
Tomasz Majchrzak [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
```
