0ad71db82b
git-svn-id: http://svn.sabayonlinux.org/overlay@1664 d7aec97c-591d-0410-af39-a8856400b30a
16 lines
503 B
Diff
16 lines
503 B
Diff
--- Linux/Kernel/Dm-target.c.orig 2007-10-11 17:09:44.000000000 +0000
|
|
+++ Linux/Kernel/Dm-target.c 2007-10-11 17:16:41.000000000 +0000
|
|
@@ -656,7 +656,12 @@
|
|
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");
|