From 3d1a96e301a6b52511ed4abe8f8fb2e7d4ca5ed0 Mon Sep 17 00:00:00 2001 From: nikita Date: Wed, 21 Jun 2006 18:49:03 +0000 Subject: [PATCH] osd_object_create(): check return value --- lustre/osd/osd_handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/osd/osd_handler.c b/lustre/osd/osd_handler.c index 6cf4b3a..31e4909 100644 --- a/lustre/osd/osd_handler.c +++ b/lustre/osd/osd_handler.c @@ -623,7 +623,8 @@ static int osd_object_create(const struct lu_context *ctx, struct dt_object *dt, result = osd_create_pre(info, obj, attr, th); if (result == 0) { - osd_create_type_f(attr->la_mode & S_IFMT)(info, obj, attr, th); + result = osd_create_type_f(attr->la_mode & S_IFMT)(info, obj, + attr, th); if (result == 0) result = osd_create_post(info, obj, attr, th); } -- 1.8.3.1