On Wed, 2012-03-21 at 14:08 +0530, santosh nayak wrote: > From: Santosh Nayak <santoshprasadnayak@xxxxxxxxx> > > We need to add error handler if kzalloc fails to allocate and initialize. > Otherwise it may lead to Null derefernce error in > 'pm8001_chip_get_nvmd_req()'. It's a GFP_KERNEL allocation. They sleep until memory is available (__GFP_WAIT). It's GFP_ATOMIC that can return NULL. James -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html