commit | 87609ad957f986f81f990c9ae42172a4b767bca2 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Mon Jul 09 17:14:14 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Jul 09 17:14:14 2018 +0000 |
tree | 09568a757ee9edef8c52ac81c0dbda9b6ce8d62c | |
parent | fd9b81c1fab7fd42def8fea7fa2462977aa16648 [diff] | |
parent | 222627653398936c7ca5d98653705450cc614c8e [diff] |
Merge "liblp: Fix incorrect get_block_device_size usage."
diff --git a/fs_mgr/liblp/utility.cpp b/fs_mgr/liblp/utility.cpp index 5310cab..a590037 100644 --- a/fs_mgr/liblp/utility.cpp +++ b/fs_mgr/liblp/utility.cpp
@@ -38,7 +38,8 @@ } 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);