On Wed, May 13, 2015 at 11:32:50AM +0000, Gujulan Elango, Hari Prasath (H.) wrote: > check return value of kmalloc before accessing the memory pointer.This > function returns a non-zero value on failure hence a return value of 1 > is used. Could you do some reasearch where this thing is freed? Since it's all the same anyway then just return a proper error code -ENOMEM. regards, dan carpenter _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel