[PATCH] drivers cris: return on NULL dev_alloc_skb()
authorDavid Rientjes <rientjes@cs.washington.edu>
Thu, 9 Nov 2006 03:49:15 +0000 (19:49 -0800)
committerJeff Garzik <jeff@garzik.org>
Fri, 10 Nov 2006 16:08:53 +0000 (11:08 -0500)
If the next descriptor array entry cannot be allocated by dev_alloc_skb(),
return immediately so it is not dereferenced later.  We cannot register the
device with a partial descriptor list.

Cc: Mikael Starvik <starvik@axis.com>
Signed-off-by: David Rientjes <rientjes@cs.washington.edu>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

No differences found