Module Name: src Committed By: cegger Date: Fri Apr 17 16:57:37 UTC 2009
Modified Files: src/sys/dev/pci: if_tlp_pci.c Log Message: check return code of tlp_attach() To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/sys/dev/pci/if_tlp_pci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_tlp_pci.c diff -u src/sys/dev/pci/if_tlp_pci.c:1.110 src/sys/dev/pci/if_tlp_pci.c:1.111 --- src/sys/dev/pci/if_tlp_pci.c:1.110 Fri Apr 17 14:07:32 2009 +++ src/sys/dev/pci/if_tlp_pci.c Fri Apr 17 16:57:37 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: if_tlp_pci.c,v 1.110 2009/04/17 14:07:32 cegger Exp $ */ +/* $NetBSD: if_tlp_pci.c,v 1.111 2009/04/17 16:57:37 cegger Exp $ */ /*- * Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.110 2009/04/17 14:07:32 cegger Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.111 2009/04/17 16:57:37 cegger Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1029,7 +1029,9 @@ /* * Finish off the attach. */ - tlp_attach(sc, enaddr); + error = tlp_attach(sc, enaddr); + if (error) + goto fail; return; fail: