slab: Catch attempted NULL frees
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Mar 2018 18:27:03 +0000 (14:27 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Mar 2018 20:43:05 +0000 (16:43 -0400)
commitd251598384d64741d24d2674e57fc4858d32163c
tree2e6390ecbb62bc4f5d790cbf2748bab0fd94509c
parent509a7640c0eadc94ff5deac060d37fa33fd42925
slab: Catch attempted NULL frees

If someone is using the slab interface, then they need to know if they have
an object or not.  This ain't like kfree().

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