Commit 928ff072 authored by Marcus Folkesson's avatar Marcus Folkesson Committed by Chris Ball
Browse files

mmc_utils: gp create: only allow partition [1-4] to be selected


Signed-off-by: default avatarMarcus Folkesson <marcus.folkesson@gmail.com>
parent d0b46442
......@@ -684,8 +684,8 @@ int do_create_gp_partition(int nargs, char **argv)
ext_attr = strtol(argv[5], NULL, 10);
device = argv[6];
if (partition < 0 || partition > 4) {
printf("Invalid gp parition number valid range [1-4]\n");
if (partition < 1 || partition > 4) {
printf("Invalid gp partition number; valid range [1-4].\n");
exit(1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment