svn commit: r232255 - head/sys/dev/amr

Kevin Lo kevlo at FreeBSD.org
Tue Feb 28 15:09:56 UTC 2012


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");
 


More information about the svn-src-all mailing list