summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/truecrypt/files/truecrypt-4.3a-2.6.29.patch')
-rw-r--r--app-crypt/truecrypt/files/truecrypt-4.3a-2.6.29.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-crypt/truecrypt/files/truecrypt-4.3a-2.6.29.patch b/app-crypt/truecrypt/files/truecrypt-4.3a-2.6.29.patch
new file mode 100644
index 0000000..1ce09f6
--- /dev/null
+++ b/app-crypt/truecrypt/files/truecrypt-4.3a-2.6.29.patch
@@ -0,0 +1,19 @@
+--- Linux/Kernel/Dm-target.c
++++ Linux/Kernel/Dm-target.c
+@@ -703,12 +703,16 @@
+
+ void __exit dm_truecrypt_exit(void)
+ {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
+ int r;
+
+ r = dm_unregister_target (&truecrypt_target);
+
+ if (r < 0)
+ error ("unregister failed %d", r);
++#else
++ dm_unregister_target (&truecrypt_target);
++#endif
+
+ destroy_workqueue (work_queue);
+ kmem_cache_destroy (bio_ctx_cache);