From 10e5e5979a4236618abfba3bc00cdb3305b82072 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Tue, 28 Sep 2021 19:32:21 -0700 Subject: [PATCH] libsnapshot_fuzzer: allow ENXIO. This is an accepted error code. Fixes: 170395454 Test: run fuzzer Change-Id: I93862c44f434878a6e1a1ed15a94c92d4a60611b --- fs_mgr/libsnapshot/snapshot_fuzz_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs_mgr/libsnapshot/snapshot_fuzz_utils.cpp b/fs_mgr/libsnapshot/snapshot_fuzz_utils.cpp index 0096f85f8..acee2f4f7 100644 --- a/fs_mgr/libsnapshot/snapshot_fuzz_utils.cpp +++ b/fs_mgr/libsnapshot/snapshot_fuzz_utils.cpp @@ -139,7 +139,7 @@ std::vector GetTableInfoIfExists(const std::string& de auto& dm = DeviceMapper::Instance(); std::vector table; if (!dm.GetTableInfo(dev_name, &table)) { - PCHECK(errno == ENODEV); + PCHECK(errno == ENODEV || errno == ENXIO); return {}; } return table;