From 9102b0b1757cea7abe1217efda6943d23292fed8 Mon Sep 17 00:00:00 2001 From: caozhiyuan Date: Thu, 29 Oct 2015 16:39:00 +0800 Subject: [PATCH] Fix ioctl parameter Change-Id: I922c8ae77056db81bc5152346299a07a34c527d2 --- Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils.cpp b/Utils.cpp index 51ef4c4..2dd9ae8 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -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; }