diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2007-10-10 21:27:01 +0000 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2007-10-10 21:27:01 +0000 |
commit | 90db18b5909dc297e6100fd8e522a0b6ddb76326 (patch) | |
tree | c6789019cb55a5aedbf0fd581a8cdc31087467cd /app-crypt/truecrypt/files | |
parent | stable ppc, bug #195212 (diff) | |
download | gentoo-2-90db18b5909dc297e6100fd8e522a0b6ddb76326.tar.gz gentoo-2-90db18b5909dc297e6100fd8e522a0b6ddb76326.tar.bz2 gentoo-2-90db18b5909dc297e6100fd8e522a0b6ddb76326.zip |
Fix for 2.6.23, bug#186901, thanks to virdiq
(Portage version: 2.1.3.12)
Diffstat (limited to 'app-crypt/truecrypt/files')
-rw-r--r-- | app-crypt/truecrypt/files/truecrypt-4.3a-2.6.23.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app-crypt/truecrypt/files/truecrypt-4.3a-2.6.23.patch b/app-crypt/truecrypt/files/truecrypt-4.3a-2.6.23.patch new file mode 100644 index 000000000000..cfa54bf19adc --- /dev/null +++ b/app-crypt/truecrypt/files/truecrypt-4.3a-2.6.23.patch @@ -0,0 +1,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"); |