aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-08-19 01:06:26 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-08-19 01:06:26 +0000
commit6c8dca8c44663a0177d213bff00387ae71419db1 (patch)
tree2207bc508fe07ab6da21281b6457eb836a8891b0 /target/linux/generic-2.6/patches
parent35f806df3d3643db340b227a1f3426a04edf3fe3 (diff)
downloadupstream-6c8dca8c44663a0177d213bff00387ae71419db1.tar.gz
upstream-6c8dca8c44663a0177d213bff00387ae71419db1.tar.bz2
upstream-6c8dca8c44663a0177d213bff00387ae71419db1.zip
fix an off-by-one error
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8427 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/patches')
-rw-r--r--target/linux/generic-2.6/patches/065-block2mtd_init.patch2
1 files changed, 1 insertions, 1 deletions
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 57a8615a02..bdb19eeccb 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;