Merge "Fix ioctl parameter" am: 0eaad8ce8c
am: 5cd32f73d8
* commit '5cd32f73d8b5e6db60d397d102e5b1b193a76c77':
Fix ioctl parameter
This commit is contained in:
commit
8185d3d8ba
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ status_t WipeBlockDevice(const std::string& path) {
|
|||
goto done;
|
||||
}
|
||||
|
||||
if ((ioctl(fd, BLKGETSIZE, nr_sec)) == -1) {
|
||||
if ((ioctl(fd, BLKGETSIZE, &nr_sec)) == -1) {
|
||||
PLOG(ERROR) << "Failed to determine size of " << path;
|
||||
goto done;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue