From: anserper Date: Wed, 13 Feb 2008 21:05:42 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_8_0_110~775 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=c144fa9329f3484b03630706509c5fbe91770a1c;p=fs%2Flustre-release.git Branch b1_6 b=13285 i=johann i=deen fixes some return code issues (refer to https://bugzilla.lustre.org/attachment.cgi?id=15278&action=edit) --- diff --git a/lustre/obdclass/lprocfs_status.c b/lustre/obdclass/lprocfs_status.c index 786d50a..a99a781 100644 --- a/lustre/obdclass/lprocfs_status.c +++ b/lustre/obdclass/lprocfs_status.c @@ -1610,7 +1610,9 @@ int lprocfs_obd_rd_recovery_status(char *page, char **start, off_t off, if (lprocfs_obd_snprintf(&page, size, &len, "status: ") <= 0) goto out; if (obd->obd_max_recoverable_clients == 0) { - lprocfs_obd_snprintf(&page, size, &len, "INACTIVE\n"); + if (lprocfs_obd_snprintf(&page, size, &len, "INACTIVE\n") <= 0) + goto out; + goto fclose; } @@ -1670,8 +1672,9 @@ int lprocfs_obd_rd_recovery_status(char *page, char **start, off_t off, if (lprocfs_obd_snprintf(&page, size, &len, "queued_requests: %d\n", obd->obd_requests_queued_for_recovery) <= 0) goto out; - lprocfs_obd_snprintf(&page, size, &len, "next_transno: "LPD64"\n", - obd->obd_next_recovery_transno); + if (lprocfs_obd_snprintf(&page, size, &len, "next_transno: "LPD64"\n", + obd->obd_next_recovery_transno) <= 0) + goto out; fclose: *eof = 1;