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

Commit 839a8182 authored by David Anderson's avatar David Anderson
Browse files

liblp: Fix incorrect get_block_device_size usage.

Bug: 79173901
Test: N/A
Change-Id: I22a3e86153830782453a47e460800f3cb4c26958
parent 35f27042
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);