Skip to contentSkip to conversation

(8/27) block2mtd 64bit bug

PATCH New Al Viro 1 participant 1 message Feb 2, 2005

Subsystems (2)
lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 (8/27) block2mtd 64bit bug

Passing pointer to size_t to function that expects u32 * and actually
stores a value there...

----

drivers/mtd/devices/block2mtd.c +1 -1
diff -urN RC11-rc2-bk10-sent/drivers/mtd/devices/block2mtd.c RC11-rc2-bk10-mtd/drivers/mtd/devices/block2mtd.c
@@ -422,7 +422,7 @@
 	char buf[80+12], *str=buf; /* 80 for device, 12 for erase size */
 	char *token[2];
 	char *name;
-	size_t erase_size = PAGE_SIZE;
+	u32 erase_size = PAGE_SIZE;
 	int i, ret;
 
 	if (strnlen(val, sizeof(buf)) >= sizeof(buf))