libnvme: Add fix for usb port in mi-mctp tool
Tested: changed the mi-mctp.c file and scp the mi-mctp executable to a
bmc https://paste.googleplex.com/5301362604769280
The issue with last implementation is the logic to check port type is
based the array size and the port type id being 0, 1, 2, 3 as continuous
numbers, which make the usb port type id 0x10 misfunction. This fix is
to fill in the other port id as reserved to mitigate the issue.
Google-Bug-Id: 462646252
Change-Id: I406e79efa5b58324b22728c4fec32a07fe9ca703
Signed-off-by: Yichao Wang <wangyic@google.com>
1 file changed