[Linux1394-cvslog] rev 737 - trunk
Brought to you by:
aeb,
bencollins
From: SVN U. <ben...@li...> - 2003-02-01 13:59:46
|
Author: bencollins Date: 2003-01-06 07:52:13 -0500 (Mon, 06 Jan 2003) New Revision: 737 Modified: trunk/amdtp.c Log: Null check for kmalloc, patch from Rusty Russell Modified: trunk/amdtp.c ============================================================================== --- trunk/amdtp.c (original) +++ trunk/amdtp.c 2003-02-01 08:59:13.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; |