--- zzzz-none-000/linux-2.6.19.2/drivers/md/dm-crypt.c 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5504/linux-2.6.19.2/drivers/md/dm-crypt.c 2007-01-11 07:38:19.000000000 +0000 @@ -915,6 +915,8 @@ 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) { @@ -923,11 +925,14 @@ break; case STATUSTYPE_TABLE: + cipher = crypto_blkcipher_name(cc->tfm); + + chainmode = cc->chainmode; + if (cc->iv_mode) - DMEMIT("%s-%s-%s ", cc->cipher, cc->chainmode, - cc->iv_mode); + DMEMIT("%s-%s-%s ", cipher, chainmode, cc->iv_mode); else - DMEMIT("%s-%s ", cc->cipher, cc->chainmode); + DMEMIT("%s-%s ", cipher, chainmode); if (cc->key_size > 0) { if ((maxlen - sz) < ((cc->key_size << 1) + 1))