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

Generated by cgit