(8/27) block2mtd 64bit bug
Subsystems (2)
PATCH 1/1 (8/27) block2mtd 64bit bug
Passing pointer to size_t to function that expects u32 * and actually
stores a value there...
Signed-off-by Al Viro <[email protected]>
----
drivers/mtd/devices/block2mtd.c +1 -1
@@ -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))