slab: don't assume allocations succeed
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 25 Sep 2019 19:51:38 +0000 (15:51 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 8 Oct 2019 21:11:11 +0000 (17:11 -0400)
commita8334d4fbb80fe5c09fedf9aab461c48f7d6e305
treece0634a01df1e6a1b7ae7f1bf369c39fdabe3952
parent0d3e65d740a2462175d988f8795829f8869b888e
slab: don't assume allocations succeed

A couple places assumed a MEM_ATOMIC allocation would succeed.  You can
tell they are old places since they still passed '0' for a flag.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/slab.c