My first instinct is to say look at something kernel-related. If an allocation fails, taking down the entire system is usually not an option (or not a good one anyway). Searching
http://lxr.linux.no/ for "kmalloc" you see a lot of callers handling failure.