summaryrefslogtreecommitdiff
blob: cfa54bf19adc5323404b5471d69281e0a0772243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -urNp truecrypt-4.3a-source-code.org/Linux/Kernel/Dm-target.c truecrypt-4.3a-source-code/Linux/Kernel/Dm-target.c
--- truecrypt-4.3a-source-code.org/Linux/Kernel/Dm-target.c	2007-04-24 19:32:06.000000000 +0300
+++ truecrypt-4.3a-source-code/Linux/Kernel/Dm-target.c	2007-10-10 23:18:24.000000000 +0200
@@ -656,7 +656,11 @@ int __init dm_truecrypt_init(void)
 		goto err;
 	}
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
 	bio_ctx_cache = kmem_cache_create ("truecrypt-bioctx", sizeof (struct bio_ctx), 0, 0, NULL, NULL);
+#else
+	bio_ctx_cache = kmem_cache_create ("truecrypt-bioctx", sizeof (struct bio_ctx), 0, 0, NULL);
+#endif
 	if (!bio_ctx_cache)
 	{
 		error ("kmem_cache_create failed");