|
@@ -3681,7 +3681,8 @@ static int receive_protocol(struct drbd_connection *connection, struct packet_in
|
|
*/
|
|
*/
|
|
|
|
|
|
peer_integrity_tfm = crypto_alloc_ahash(integrity_alg, 0, CRYPTO_ALG_ASYNC);
|
|
peer_integrity_tfm = crypto_alloc_ahash(integrity_alg, 0, CRYPTO_ALG_ASYNC);
|
|
- if (!peer_integrity_tfm) {
|
|
|
|
|
|
+ if (IS_ERR(peer_integrity_tfm)) {
|
|
|
|
+ peer_integrity_tfm = NULL;
|
|
drbd_err(connection, "peer data-integrity-alg %s not supported\n",
|
|
drbd_err(connection, "peer data-integrity-alg %s not supported\n",
|
|
integrity_alg);
|
|
integrity_alg);
|
|
goto disconnect;
|
|
goto disconnect;
|