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

Flexlinting

parent e0577a09
......@@ -451,8 +451,8 @@ smf_alloc(const struct stevedore *st, size_t size)
CAST_OBJ_NOTNULL(sc, st->priv, SMF_SC_MAGIC);
assert(size > 0);
size += (sc->pagesize - 1);
size &= ~(sc->pagesize - 1);
size += (sc->pagesize - 1L);
size &= ~(sc->pagesize - 1L);
Lck_Lock(&sc->mtx);
sc->stats->c_req++;
smf = alloc_smf(sc, 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