summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/patches-2.6.30/fix-rtl865x_uncashedmalloc-trick.patch
diff options
context:
space:
mode:
authorArtur Artamonov <freeartman@wechall.net>2013-09-27 12:29:26 +0300
committerArtur Artamonov <freeartman@wechall.net>2013-09-27 12:29:26 +0300
commit6b37c34cef1bf8049ece54475151d3a02e79a662 (patch)
tree9477c5e08f75035d290c6d383b8cbb0a41499145 /target/linux/realtek/patches-2.6.30/fix-rtl865x_uncashedmalloc-trick.patch
parent327364d24d6aacc3e59e5fc983e3ab0c3e99c779 (diff)
patch collection that fixes, crashes, mips16 usage and bsp profile usage
Diffstat (limited to 'target/linux/realtek/patches-2.6.30/fix-rtl865x_uncashedmalloc-trick.patch')
-rw-r--r--target/linux/realtek/patches-2.6.30/fix-rtl865x_uncashedmalloc-trick.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/realtek/patches-2.6.30/fix-rtl865x_uncashedmalloc-trick.patch b/target/linux/realtek/patches-2.6.30/fix-rtl865x_uncashedmalloc-trick.patch
new file mode 100644
index 000000000..1340ac22a
--- /dev/null
+++ b/target/linux/realtek/patches-2.6.30/fix-rtl865x_uncashedmalloc-trick.patch
@@ -0,0 +1,14 @@
+diff --git a/target/linux/realtek/files/drivers/net/rtl819x/rtl865xc_swNic.h b/target/linux/realtek/files/drivers/net/rtl819x/rtl865xc_swNic.h
+index 3d1f1fa..bd76230 100644
+--- a/drivers/net/rtl819x/rtl865xc_swNic.h
++++ b/drivers/net/rtl819x/rtl865xc_swNic.h
+@@ -295,7 +295,8 @@ struct ring_que {
+
+ static inline void *UNCACHED_MALLOC(int size)
+ {
+- return ((void *)(((uint32)kmalloc(size, GFP_ATOMIC)) | UNCACHE_MASK));
++ //return ((void *)(((uint32)kmalloc(size, GFP_ATOMIC)) | UNCACHE_MASK));
++ return ((void *)(((uint32)kmalloc(size, GFP_ATOMIC))));
+ }
+
+ #endif /* _SWNIC_H */