qio: check for leaked blocks
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 3 Jun 2019 18:13:26 +0000 (14:13 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 3 Jun 2019 18:13:26 +0000 (14:13 -0400)
commitc4503e46596f3e9c450d13c72f6089a56f769d55
tree8495c3b7d6d0cf299d46c87a9d979e3e87947c9c
parent4c8b611f363d6001351e34a3cdf756d4830e4a01
qio: check for leaked blocks

Whether a block is a singleton or a blocklist can be a little confusing.
This commit attempts to catch any freeb() calls on a block that is
actually part of a list.  So far, I haven't found any cases, so this is
merely precautionary.

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