dm-crypt.c (35858adbfca13678af99fb31618ef4428d6dedb0) dm-crypt.c (8215d6ec5fee1e76545decea2cd73717efb5cb42)
1/*
2 * Copyright (C) 2003 Christophe Saout <christophe@saout.de>
3 * Copyright (C) 2004 Clemens Fruhwirth <clemens@endorphin.org>
4 * Copyright (C) 2006-2009 Red Hat, Inc. All rights reserved.
5 *
6 * This file is released under the GPL.
7 */
8

--- 1146 unchanged lines hidden (view full) ---

1155 cc->iv_offset = tmpll;
1156
1157 if (sscanf(argv[4], "%llu", &tmpll) != 1) {
1158 ti->error = "Invalid device sector";
1159 goto bad_device;
1160 }
1161 cc->start = tmpll;
1162
1/*
2 * Copyright (C) 2003 Christophe Saout <christophe@saout.de>
3 * Copyright (C) 2004 Clemens Fruhwirth <clemens@endorphin.org>
4 * Copyright (C) 2006-2009 Red Hat, Inc. All rights reserved.
5 *
6 * This file is released under the GPL.
7 */
8

--- 1146 unchanged lines hidden (view full) ---

1155 cc->iv_offset = tmpll;
1156
1157 if (sscanf(argv[4], "%llu", &tmpll) != 1) {
1158 ti->error = "Invalid device sector";
1159 goto bad_device;
1160 }
1161 cc->start = tmpll;
1162
1163 if (dm_get_device(ti, argv[3], cc->start, ti->len,
1164 dm_table_get_mode(ti->table), &cc->dev)) {
1163 if (dm_get_device(ti, argv[3], dm_table_get_mode(ti->table), &cc->dev)) {
1165 ti->error = "Device lookup failed";
1166 goto bad_device;
1167 }
1168
1169 if (ivmode && cc->iv_gen_ops) {
1170 if (ivopts)
1171 *(ivopts - 1) = ':';
1172 cc->iv_mode = kmalloc(strlen(ivmode) + 1, GFP_KERNEL);

--- 267 unchanged lines hidden ---
1164 ti->error = "Device lookup failed";
1165 goto bad_device;
1166 }
1167
1168 if (ivmode && cc->iv_gen_ops) {
1169 if (ivopts)
1170 *(ivopts - 1) = ':';
1171 cc->iv_mode = kmalloc(strlen(ivmode) + 1, GFP_KERNEL);

--- 267 unchanged lines hidden ---