diff --git a/fs_mgr/liblp/utility.cpp b/fs_mgr/liblp/utility.cpp index 5310cabbc..a5900377a 100644 --- a/fs_mgr/liblp/utility.cpp +++ b/fs_mgr/liblp/utility.cpp @@ -38,7 +38,8 @@ bool GetDescriptorSize(int fd, uint64_t* size) { } if (S_ISBLK(s.st_mode)) { - return get_block_device_size(fd); + *size = get_block_device_size(fd); + return *size != 0; } int64_t result = SeekFile64(fd, 0, SEEK_END);