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");
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"