Fix ioctl parameter

Change-Id: I922c8ae77056db81bc5152346299a07a34c527d2
gugelfrei
caozhiyuan 9 years ago committed by Alvin Cao
parent 7d17af08a8
commit 9102b0b175

@ -504,7 +504,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…
Cancel
Save