Merge "vold: Add a new mountall command."
diff --git a/CommandListener.cpp b/CommandListener.cpp
index 81747a4..9ef29f9 100644
--- a/CommandListener.cpp
+++ b/CommandListener.cpp
@@ -252,6 +252,10 @@
         DIR *dir;
         struct dirent *de;
 
+        if (argc < 3) {
+            cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing Argument: user <mountpoint>", false);
+            return 0;
+        }
         if (!(dir = opendir("/proc"))) {
             cli->sendMsg(ResponseCode::OperationFailed, "Failed to open /proc", true);
             return 0;