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:
Roman Sobanski 2018-08-13 07:52:53 +02:00 committed by Jes Sorensen
parent 9bd99a90e1
commit 5c4cc0c820
1 changed files with 3 additions and 0 deletions

View File

@ -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;