dm-crypt.c (b22364c8eec89e6b0c081a237f3b6348df87796f) | dm-crypt.c (5972511b77809cb7c9ccdb79b825c54921c5c546) |
---|---|
1/* 2 * Copyright (C) 2003 Christophe Saout <christophe@saout.de> 3 * Copyright (C) 2004 Clemens Fruhwirth <clemens@endorphin.org> 4 * Copyright (C) 2006 Red Hat, Inc. All rights reserved. 5 * 6 * This file is released under the GPL. 7 */ 8 --- 853 unchanged lines hidden (view full) --- 862 } 863 864 cc->page_pool = mempool_create_page_pool(MIN_POOL_PAGES, 0); 865 if (!cc->page_pool) { 866 ti->error = "Cannot allocate page mempool"; 867 goto bad4; 868 } 869 | 1/* 2 * Copyright (C) 2003 Christophe Saout <christophe@saout.de> 3 * Copyright (C) 2004 Clemens Fruhwirth <clemens@endorphin.org> 4 * Copyright (C) 2006 Red Hat, Inc. All rights reserved. 5 * 6 * This file is released under the GPL. 7 */ 8 --- 853 unchanged lines hidden (view full) --- 862 } 863 864 cc->page_pool = mempool_create_page_pool(MIN_POOL_PAGES, 0); 865 if (!cc->page_pool) { 866 ti->error = "Cannot allocate page mempool"; 867 goto bad4; 868 } 869 |
870 cc->bs = bioset_create(MIN_IOS, MIN_IOS, 4); | 870 cc->bs = bioset_create(MIN_IOS, MIN_IOS); |
871 if (!cc->bs) { 872 ti->error = "Cannot allocate crypt bioset"; 873 goto bad_bs; 874 } 875 876 if (crypto_blkcipher_setkey(tfm, cc->key, key_size) < 0) { 877 ti->error = "Error setting key"; 878 goto bad5; --- 242 unchanged lines hidden --- | 871 if (!cc->bs) { 872 ti->error = "Cannot allocate crypt bioset"; 873 goto bad_bs; 874 } 875 876 if (crypto_blkcipher_setkey(tfm, cc->key, key_size) < 0) { 877 ti->error = "Error setting key"; 878 goto bad5; --- 242 unchanged lines hidden --- |