]> err.no Git - linux-2.6/commit
sky2: handle network device allocation failure
authorshemminger@linux-foundation.org <shemminger@linux-foundation.org>
Fri, 26 Jan 2007 19:38:36 +0000 (11:38 -0800)
committerJeff Garzik <jeff@garzik.org>
Mon, 5 Feb 2007 21:58:49 +0000 (16:58 -0500)
commit7f60c64bd0e7262b51faefcce5d8df9d51d84b60
tree95e1abd4cc6fe82d6b146113eda8fa15a9c8603a
parent2bf56fe25cef2a7652f7b2ab37ac14a336c76c75
sky2: handle network device allocation failure

If alloc_etherdev() failed, then sky2_init_netdev will return NULL,
and sky2_probe would end up returning 0 instead of -ENOMEM.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/sky2.c