--- tcrypt.c.orig 2004-08-14 09:37:38.000000000 +0400 +++ tcrypt.c 2004-09-05 21:11:19.000000000 +0400 @@ -58,6 +58,8 @@ static char *xbuf; static char *tvmem; +static char tvmem_buf[TVMEMSIZE]; + static char *check[] = { "des", "md5", "des3_ede", "rot13", "sha1", "sha256", "blowfish", "twofish", "serpent", "sha384", "sha512", "md4", "aes", "cast6", @@ -820,7 +822,8 @@ static int __init init(void) { - tvmem = kmalloc(TVMEMSIZE, GFP_KERNEL); + tvmem = &tvmem_buf[0]; + if (tvmem == NULL) return -ENOMEM; @@ -833,7 +836,6 @@ do_test(); kfree(xbuf); - kfree(tvmem); return 0; }