Merge "liblp: Fix incorrect get_block_device_size usage." am: a04058ea48 am: 3e2ff2d2ed

am: 802000e559

Change-Id: I440312dd9f2b89b8d40e2e336cfa1294edf318d5
This commit is contained in:
David Anderson 2018-07-09 10:33:57 -07:00 committed by android-build-merger
commit 45e9a336cb

View file

@ -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);