Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40464
b: refs/heads/master
c: 37af656
h: refs/heads/master
v: v3
  • Loading branch information
Christophe Saout authored and Linus Torvalds committed Oct 30, 2006
1 parent e536195 commit 3e02d0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: c1b707d253fe918b92882cff1dbd926b47e14fd2
refs/heads/master: 37af6560f7978c60791b5f3df17ce8b3e97f2d6e
11 changes: 3 additions & 8 deletions trunk/drivers/md/dm-crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,8 +915,6 @@ static int crypt_status(struct dm_target *ti, status_type_t type,
char *result, unsigned int maxlen)
{
struct crypt_config *cc = (struct crypt_config *) ti->private;
const char *cipher;
const char *chainmode = NULL;
unsigned int sz = 0;

switch (type) {
Expand All @@ -925,14 +923,11 @@ static int crypt_status(struct dm_target *ti, status_type_t type,
break;

case STATUSTYPE_TABLE:
cipher = crypto_blkcipher_name(cc->tfm);

chainmode = cc->chainmode;

if (cc->iv_mode)
DMEMIT("%s-%s-%s ", cipher, chainmode, cc->iv_mode);
DMEMIT("%s-%s-%s ", cc->cipher, cc->chainmode,
cc->iv_mode);
else
DMEMIT("%s-%s ", cipher, chainmode);
DMEMIT("%s-%s ", cc->cipher, cc->chainmode);

if (cc->key_size > 0) {
if ((maxlen - sz) < ((cc->key_size << 1) + 1))
Expand Down

0 comments on commit 3e02d0b

Please sign in to comment.