fastboot driver: Avoid use after std::move()
Test: TreeHugger Change-Id: I2857f6d6384c8c80809f21202dbbbfc9ed71beeb
This commit is contained in:
parent
5463f859b3
commit
f4c6ce4a10
1 changed files with 2 additions and 2 deletions
|
@ -995,7 +995,7 @@ static void rewrite_vbmeta_buffer(struct fastboot_buffer* buf, bool vbmeta_in_bo
|
|||
die("Failed writing to modified vbmeta");
|
||||
}
|
||||
buf->fd = std::move(fd);
|
||||
lseek(fd, 0, SEEK_SET);
|
||||
lseek(buf->fd, 0, SEEK_SET);
|
||||
}
|
||||
|
||||
static bool has_vbmeta_partition() {
|
||||
|
@ -1063,7 +1063,7 @@ static void copy_boot_avb_footer(const std::string& partition, struct fastboot_b
|
|||
}
|
||||
buf->fd = std::move(fd);
|
||||
buf->sz = partition_size;
|
||||
lseek(fd, 0, SEEK_SET);
|
||||
lseek(buf->fd, 0, SEEK_SET);
|
||||
}
|
||||
|
||||
static void flash_buf(const std::string& partition, struct fastboot_buffer *buf)
|
||||
|
|
Loading…
Reference in a new issue