On Sat, Mar 26, 2011 at 08:47:44PM +0300, Dan Carpenter wrote: > 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. Grr... A void pointer I meant, obviously. regards, dan carpenter > > regards, > dan carpenter _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel