Merge "libsnapshot_fuzzer: allow ENXIO." am: d6fc145473

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1839713

Change-Id: Ibd14c26cf444f44ed9dcb9816aaf6a85afcf2945
This commit is contained in:
Yifan Hong 2021-09-29 21:11:42 +00:00 committed by Automerger Merge Worker
commit 8268f6ea4a

View file

@ -139,7 +139,7 @@ std::vector<DeviceMapper::TargetInfo> GetTableInfoIfExists(const std::string& de
auto& dm = DeviceMapper::Instance();
std::vector<DeviceMapper::TargetInfo> table;
if (!dm.GetTableInfo(dev_name, &table)) {
PCHECK(errno == ENODEV);
PCHECK(errno == ENODEV || errno == ENXIO);
return {};
}
return table;