kmalloc() and friends don't always return a non-null value. This patch is