imsm: Avoid duplicate entries in --detail-platform
In some scenarios mdadm --detail-platform shows duplicated info about one of controllers. Block it. Signed-off-by: Roman Sobanski <roman.sobanski@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
parent
9bd99a90e1
commit
5c4cc0c820
|
@ -371,6 +371,9 @@ static int scan(const void *start, const void *end, const void *data)
|
|||
if (__le16_to_cpu(ptr->vendorID) != 0x8086)
|
||||
return 0;
|
||||
|
||||
if (get_orom_by_device_id(ptr->deviceID))
|
||||
return 0;
|
||||
|
||||
for (offset = 0; offset < len; offset += 4) {
|
||||
const void *mem = start + offset;
|
||||
|
||||
|
|
Loading…
Reference in New Issue