From c144fa9329f3484b03630706509c5fbe91770a1c Mon Sep 17 00:00:00 2001 From: anserper Date: Wed, 13 Feb 2008 21:05:42 +0000 Subject: [PATCH] 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) --- lustre/obdclass/lprocfs_status.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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; -- 1.8.3.1