]> err.no Git - linux-2.6/commit
[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)
commit92b1f905637bbd79fcd430a09737fd97061eb405
tree93ef60a2e6977d206462d14901d13c1cbf0f4a9b
parentace48ffb5d6c927c5a98048d93543e1cae0eebd0
[PATCH] drivers cris: return on NULL dev_alloc_skb()

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>
drivers/net/cris/eth_v10.c