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

Commit 802000e5 authored by David Anderson's avatar David Anderson Committed by android-build-merger
Browse files

Merge "liblp: Fix incorrect get_block_device_size usage." am: a04058ea

am: 3e2ff2d2

Change-Id: Iae3a981de2bc61d0045f607a00b361246b8aafa2
parents 72f539f0 3e2ff2d2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);