Commit 7bbe9f83 authored by Sebastien Buisson's avatar Sebastien Buisson Committed by Greg Kroah-Hartman

staging: lustre: mgc: fix 'error handling' issues

Fix 'error handling' issues found by Coverity version 6.6.1:
Unchecked return value (CHECKED_RETURN)
Calling function without checking return value.
Argument cannot be negative (NEGATIVE_RETURNS)
Negative value used as argument to a function expecting a
positive value.
Signed-off-by: default avatarSebastien Buisson <>
Reviewed-on: default avatarDmitry Eremin <>
Reviewed-by: default avatarJames Nunez <>
Reviewed-by: default avatarOleg Drokin <>
Signed-off-by: default avatarJames Simmons <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 72a50e4f
......@@ -502,8 +502,12 @@ static void do_requeue(struct config_llog_data *cld)
if (cld->cld_mgcexp->exp_obd->u.cli.cl_conn_count != 0) {
int rc;
CDEBUG(D_MGC, "updating log %s\n", cld->cld_logname);
mgc_process_log(cld->cld_mgcexp->exp_obd, cld);
rc = mgc_process_log(cld->cld_mgcexp->exp_obd, cld);
if (rc && rc != -ENOENT)
CERROR("failed processing log: %d\n", rc);
} else {
CDEBUG(D_MGC, "disconnecting, won't update log %s\n",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment