Commit da727cb9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Lasse Karstensen

Reset storage_malloc counter on allocation failure.

Submitted by:	github::onovy
parent ae4449ee
......@@ -106,6 +106,7 @@ sma_alloc(const struct stevedore *st, size_t size)
* XXX: Not want to pick up the lock twice just for stats.
*/
sma_sc->stats->c_fail++;
sma_sc->sma_alloc -= size;
sma_sc->stats->c_bytes -= size;
sma_sc->stats->g_alloc--;
sma_sc->stats->g_bytes -= size;
......
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