kernel: Add CONFIG_MEM_SLAB_POINTER_VALIDATE

Makes the validation of both allocated memory slab pointer and the
memory slab pointer to free configurable.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2 files changed