Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209153
b: refs/heads/master
c: a9c88f2
h: refs/heads/master
i:
  209151: b53da4c
v: v3
  • Loading branch information
Julia Lawall authored and Alasdair G Kergon committed Aug 12, 2010
1 parent 67b66e2 commit c145a16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 402ab352c2c00ba8f90c724565f8cf31210d99cf
refs/heads/master: a9c88f2ebc1a5937915cb3b89c9f03894134f39a
3 changes: 1 addition & 2 deletions trunk/drivers/md/dm-crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,12 +1168,11 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
if (ivmode && cc->iv_gen_ops) {
if (ivopts)
*(ivopts - 1) = ':';
cc->iv_mode = kmalloc(strlen(ivmode) + 1, GFP_KERNEL);
cc->iv_mode = kstrdup(ivmode, GFP_KERNEL);
if (!cc->iv_mode) {
ti->error = "Error kmallocing iv_mode string";
goto bad_ivmode_string;
}
strcpy(cc->iv_mode, ivmode);
} else
cc->iv_mode = NULL;

Expand Down

0 comments on commit c145a16

Please sign in to comment.