On Sat, Mar 26, 2011 at 08:18:12PM +0300, Alexander Beregalov wrote: > - buf = (u8 *)rtsx_alloc_dma_buf(chip, 64 * 512, GFP_KERNEL); > + buf = (u8 *)kmalloc(64 * 512, GFP_KERNEL); kmalloc() returns a NULL pointer. These casts are not needed. regards, dan carpenter _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel