summaryrefslogtreecommitdiffstats
path: root/recipes-enea/linx/linx-mod-2.6.6/support-for-3.12-kernels.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-enea/linx/linx-mod-2.6.6/support-for-3.12-kernels.patch')
-rw-r--r--recipes-enea/linx/linx-mod-2.6.6/support-for-3.12-kernels.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes-enea/linx/linx-mod-2.6.6/support-for-3.12-kernels.patch b/recipes-enea/linx/linx-mod-2.6.6/support-for-3.12-kernels.patch
new file mode 100644
index 0000000..60c69a8
--- /dev/null
+++ b/recipes-enea/linx/linx-mod-2.6.6/support-for-3.12-kernels.patch
@@ -0,0 +1,24 @@
1Fixed build errors for linx_mod with kernel 3.12.X.
2
3For details, see [LXCR-3427].
4
5Upstream-Status: Not Applicable
6
7Signed-off-by: Liviu Gheorghisan <liviu.gheorghisan@enea.com>
8
9---
10--- a/af_linx.c 2014-04-02 10:19:44.000000000 +0300
11+++ b/af_linx.c 2014-07-23 17:40:01.629687646 +0300
12@@ -1034,8 +1034,11 @@
13 failure:
14 *errcode = err;
15 return NULL;
16-#else
17+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0)
18 return sock_alloc_send_pskb(sk, 0, data_len, 0, errcode);
19+#else
20+ /* max_page_order == 0 => no paged allocations */
21+ return sock_alloc_send_pskb(sk, 0, data_len, 0, errcode, 0);
22 #endif
23 }
24