summaryrefslogtreecommitdiffstats
path: root/recipes-enea/linx/linx-mod-2.6.6/support-for-3.12-kernels.patch
blob: 60c69a8ae31d8b7a37d43348cc70649a2623e736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Fixed build errors for linx_mod with kernel 3.12.X.

For details, see [LXCR-3427].

Upstream-Status: Not Applicable

Signed-off-by: Liviu Gheorghisan <liviu.gheorghisan@enea.com>

---
--- a/af_linx.c	2014-04-02 10:19:44.000000000 +0300
+++ b/af_linx.c	2014-07-23 17:40:01.629687646 +0300
@@ -1034,8 +1034,11 @@
       failure:
 	*errcode = err;
 	return NULL;
-#else
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0)
 	return sock_alloc_send_pskb(sk, 0, data_len, 0, errcode);
+#else
+	/* max_page_order == 0 => no paged allocations */
+	return sock_alloc_send_pskb(sk, 0, data_len, 0, errcode, 0);
 #endif
 }