Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8268f6ea authored by Yifan Hong's avatar Yifan Hong Committed by Automerger Merge Worker
Browse files

Merge "libsnapshot_fuzzer: allow ENXIO." am: d6fc1454

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

Change-Id: Ibd14c26cf444f44ed9dcb9816aaf6a85afcf2945
parents b5b5d89e d6fc1454
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -139,7 +139,7 @@ std::vector<DeviceMapper::TargetInfo> GetTableInfoIfExists(const std::string& de
    auto& dm = DeviceMapper::Instance();
    auto& dm = DeviceMapper::Instance();
    std::vector<DeviceMapper::TargetInfo> table;
    std::vector<DeviceMapper::TargetInfo> table;
    if (!dm.GetTableInfo(dev_name, &table)) {
    if (!dm.GetTableInfo(dev_name, &table)) {
        PCHECK(errno == ENODEV);
        PCHECK(errno == ENODEV || errno == ENXIO);
        return {};
        return {};
    }
    }
    return table;
    return table;