From 96b6ec848f07f9783f1dfd63b4c891e857d295b1 Mon Sep 17 00:00:00 2001 From: lsy Date: Tue, 20 Sep 2005 16:23:46 +0000 Subject: [PATCH] typo. --- lustre/obdclass/capa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/obdclass/capa.c b/lustre/obdclass/capa.c index 4d27fef..36caa80 100644 --- a/lustre/obdclass/capa.c +++ b/lustre/obdclass/capa.c @@ -360,9 +360,9 @@ void capa_hmac(struct crypto_tfm *tfm, __u8 *key, struct lustre_capa *capa) LASSERT(tfm); crypto_hmac(tfm, key, &keylen, &sl, 1, capa->lc_hmac); { - char *buf; + char *buf = NULL; - OBD_ALLOC(key, keylen * 2 + 1); + OBD_ALLOC(buf, keylen * 2 + 1); if (key) { dump_capa_key(buf, key); DEBUG_CAPA(D_INODE, capa, "hmac with %s", buf); -- 1.8.3.1