From: nikita Date: Wed, 21 Jun 2006 18:49:03 +0000 (+0000) Subject: osd_object_create(): check return value X-Git-Tag: v1_8_0_110~486^2~1580 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3d1a96e301a6b52511ed4abe8f8fb2e7d4ca5ed0;p=fs%2Flustre-release.git osd_object_create(): check return value --- 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); }