]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - disk/part.c
IDE: bail out of dev_print() for unknown device types
[karo-tx-uboot.git] / disk / part.c
index c7774930b8499d2d1f3d83b17484cccddc25b404..b92fb45b8616c79ed0de0350d45a6bbb8a292729 100644 (file)
@@ -114,6 +114,11 @@ void dev_print (block_dev_desc_t *dev_desc)
        lbaint_t lba512;
 #endif
 
+       if (dev_desc->type == DEV_TYPE_UNKNOWN) {
+               puts ("not available\n");
+               return;
+       }
+
        switch (dev_desc->if_type) {
        case IF_TYPE_SCSI:
                printf ("(%d:%d) Vendor: %s Prod.: %s Rev: %s\n",