From: tappro Date: Mon, 7 Aug 2006 21:17:03 +0000 (+0000) Subject: - fix forgotten allocation X-Git-Tag: v1_8_0_110~486^2~1239 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e61c84066591644796f8d278d011d73b959393d4;p=fs%2Flustre-release.git - fix forgotten allocation --- diff --git a/lustre/llite/namei.c b/lustre/llite/namei.c index 16f3cec..9c27050 100644 --- a/lustre/llite/namei.c +++ b/lustre/llite/namei.c @@ -879,8 +879,11 @@ static int ll_unlink_generic(struct inode * dir, struct qstr *name) CDEBUG(D_VFSTRACE, "VFS Op:name=%.*s,dir=%lu/%u(%p)\n", name->len, name->name, dir->i_ino, dir->i_generation, dir); - ll_prepare_md_op_data(op_data, dir, NULL, name->name, - name->len, 0); + OBD_ALLOC_PTR(op_data); + if (op_data == NULL) + RETURN(-ENOMEM); + + ll_prepare_md_op_data(op_data, dir, NULL, name->name, name->len, 0); rc = md_unlink(ll_i2sbi(dir)->ll_md_exp, op_data, &request); OBD_FREE_PTR(op_data);