libsnapshot_fuzzer: allow ENXIO.

This is an accepted error code.

Fixes: 170395454
Test: run fuzzer

Change-Id: I93862c44f434878a6e1a1ed15a94c92d4a60611b
This commit is contained in:
Yifan Hong 2021-09-28 19:32:21 -07:00
parent c00bfdcc9a
commit 10e5e5979a

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;