Index: uspace/lib/fdisk/src/fdisk.c
===================================================================
--- uspace/lib/fdisk/src/fdisk.c	(revision 63011c53bb450801d5a48366fc12de4e32a10248)
+++ uspace/lib/fdisk/src/fdisk.c	(revision 82cbf8c6161e2ff15d39a43b59096447a98acc21)
@@ -1015,4 +1015,6 @@
 	max_blocks = fdisk_ba_align_up(dev, max_blocks);
 
+	pcnt = LPC_LIMIT;
+
 	switch (pspec->fstype) {
 	case fs_exfat:
@@ -1030,7 +1032,8 @@
 	case fs_cdfs:
 		return EINVAL; /* You cannot create an ISO partition */
-	default:
+	}
+
+	if (pcnt == LPC_LIMIT)
 		return EINVAL;
-	}
 
 	if (pspec->pkind == lpk_logical) {
