Merge "Fix ioctl parameter" am: 0eaad8ce8c

am: 5cd32f73d8

* commit '5cd32f73d8b5e6db60d397d102e5b1b193a76c77':
  Fix ioctl parameter
This commit is contained in:
Elliott Hughes 2015-10-29 20:44:35 +00:00 committed by android-build-merger
commit 8185d3d8ba

View file

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