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;
}
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;