projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update etrax usb support - thanks Hinko Kocevar
[openwrt.git]
/
target
/
linux
/
generic-2.6
/
patches
/
065-block2mtd_init.patch
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
57a8615
..
bdb19ee
100644
(file)
--- 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;
+
+ 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;
+
if (!dev->mtd.name)
goto devinit_err;
This page took
0.042641 seconds
and
4
git commands to generate.