drbd: Following the hmac change to SHASH (see linux commit 8bd1209cfff)
authorPhilipp Reisner <philipp.reisner@linbit.com>
Sun, 6 Dec 2009 22:50:24 +0000 (23:50 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 9 Dec 2009 14:11:03 +0000 (15:11 +0100)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/drbd/drbd_nl.c

index 436a090..4e0726a 100644 (file)
@@ -1271,8 +1271,7 @@ static int drbd_nl_net_conf(struct drbd_conf *mdev, struct drbd_nl_cfg_req *nlp,
                        goto fail;
                }
 
-               if (crypto_tfm_alg_type(crypto_hash_tfm(tfm))
-                                               != CRYPTO_ALG_TYPE_HASH) {
+               if (crypto_tfm_alg_type(crypto_hash_tfm(tfm)) != CRYPTO_ALG_TYPE_SHASH) {
                        retcode = ERR_AUTH_ALG_ND;
                        goto fail;
                }