Thread: [Linux1394-cvslog] rev 738 - branches/linux-2.4
Brought to you by:
aeb,
bencollins
From: SVN U. <ben...@li...> - 2003-02-01 13:59:47
|
Author: bencollins Date: 2003-01-06 07:53:03 -0500 (Mon, 06 Jan 2003) New Revision: 738 Modified: branches/linux-2.4/amdtp.c Log: Null check for kmalloc, patch from Rusty Russell Modified: branches/linux-2.4/amdtp.c ============================================================================== --- branches/linux-2.4/amdtp.c (original) +++ branches/linux-2.4/amdtp.c 2003-02-01 08:59:14.000000000 -0500 @@ -598,6 +598,8 @@ struct buffer *b; b = kmalloc(sizeof *b + size, SLAB_KERNEL); + if (b == NULL) + return NULL; b->head = 0; b->tail = 0; b->length = 0; |