Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2012 15:09:56 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232255 - head/sys/dev/amr
Message-ID:  <201202281509.q1SF9ubH076034@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Tue Feb 28 15:09:56 2012
New Revision: 232255
URL: http://svn.freebsd.org/changeset/base/232255

Log:
  Fix checks for error return from amr_sglist_map() and amr_ccb_map()

Modified:
  head/sys/dev/amr/amr_pci.c

Modified: head/sys/dev/amr/amr_pci.c
==============================================================================
--- head/sys/dev/amr/amr_pci.c	Tue Feb 28 15:07:05 2012	(r232254)
+++ head/sys/dev/amr/amr_pci.c	Tue Feb 28 15:09:56 2012	(r232255)
@@ -339,11 +339,11 @@ amr_pci_attach(device_t dev)
     /*
      * Build the scatter/gather buffers.
      */
-    if (amr_sglist_map(sc))
+    if ((error = amr_sglist_map(sc)) != 0)
 	goto out;
     debug(2, "s/g list mapped");
 
-    if (amr_ccb_map(sc))
+    if ((error = amr_ccb_map(sc)) != 0)
 	goto out;
     debug(2, "ccb mapped");
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202281509.q1SF9ubH076034>