Re: [PATCH 2/2] mmc-utils: add support to create gp partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

can I suggest to you this little fix:
--- mmc-utils.ref/mmc_cmds.c	2014-11-05 09:38:49.567266375 +0100
+++ mmc-utils/mmc_cmds.c	2014-11-05 10:15:00.002010783 +0100
@@ -618,7 +618,7 @@
 	ext_attr = strtol(argv[5], NULL, 10);
 	device = argv[6];
 
-	if (partition < 0 || partition > 4) {
+	if (partition < 1 || partition > 4) {
 		 printf("Invalid gp parition number valid range [1-4]\n");
 		 exit(1);
 	}

regards,
Mickaël




--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux