X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/a3df50fd61e049a5827878459d7bf0b9e670f2ba..59d3cbb5a54b4d01fe6964fdb80dc7071a87182b:/target/linux/generic-2.6/patches/065-block2mtd_init.patch?ds=inline diff --git a/target/linux/generic-2.6/patches/065-block2mtd_init.patch b/target/linux/generic-2.6/patches/065-block2mtd_init.patch index 57a8615a0..bdb19eecc 100644 --- a/target/linux/generic-2.6/patches/065-block2mtd_init.patch +++ b/target/linux/generic-2.6/patches/065-block2mtd_init.patch @@ -32,7 +32,7 @@ diff -urN linux-2.6.21.1.old/drivers/mtd/devices/block2mtd.c linux-2.6.21.1.dev/ + if (!mtdname) + mtdname = devname; + -+ dev->mtd.name = kmalloc(strlen(mtdname), GFP_KERNEL); ++ dev->mtd.name = kmalloc(strlen(mtdname) + 1, GFP_KERNEL); + if (!dev->mtd.name) goto devinit_err;