[PATCH] uml ubd driver: allow using up to 16 UBD devices
[sfrench/cifs-2.6.git] / arch / um / drivers / ubd_kern.c
index bc458f57921b0f232d0f078bc5014424281e8617..54d24738280e3d48e3e817d2bfb64621fe993f81 100644 (file)
@@ -117,7 +117,7 @@ static int ubd_ioctl(struct inode * inode, struct file * file,
                     unsigned int cmd, unsigned long arg);
 static int ubd_getgeo(struct block_device *bdev, struct hd_geometry *geo);
 
-#define MAX_DEV (8)
+#define MAX_DEV (16)
 
 static struct block_device_operations ubd_blops = {
         .owner         = THIS_MODULE,
@@ -277,7 +277,7 @@ static int parse_unit(char **ptr)
                        return(-1);
                *ptr = end;
        }
-       else if (('a' <= *str) && (*str <= 'h')) {
+       else if (('a' <= *str) && (*str <= 'z')) {
                n = *str - 'a';
                str++;
                *ptr = str;