summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/probing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c
index 515ba81f5..0a18f0233 100644
--- a/mdk-stage1/probing.c
+++ b/mdk-stage1/probing.c
@@ -569,7 +569,7 @@ static void find_media(enum media_bus bus)
int major, minor, blocks;
memset(name, 0, sizeof(name));
sscanf(buf, " %d %d %d %s", &major, &minor, &blocks, name);
- if (streq(name, tmp_name) && ((blocks == 1048575) || (blocks == 1440)))
+ if (streq(name, tmp_name) && tmp[count].type == DISK && ((blocks == 1048575) || (blocks == 1440)))
tmp[count].type = FLOPPY;
}
fclose(f);