diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2012-02-28 15:09:56 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2012-02-28 15:09:56 +0000 |
commit | bf78cb3887935dad9ce70c3f0d967cc229667f95 (patch) | |
tree | ed7b433fd2dd749091656fcb7ca1512c3a2569b7 /sys/dev/amr/amr_pci.c | |
parent | 9aae28359d239932bdf89c40803e69edcaa23aec (diff) | |
download | src-bf78cb3887935dad9ce70c3f0d967cc229667f95.tar.gz src-bf78cb3887935dad9ce70c3f0d967cc229667f95.zip |
Fix checks for error return from amr_sglist_map() and amr_ccb_map()
Notes
Notes:
svn path=/head/; revision=232255
Diffstat (limited to 'sys/dev/amr/amr_pci.c')
-rw-r--r-- | sys/dev/amr/amr_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/amr/amr_pci.c b/sys/dev/amr/amr_pci.c index b10c65f5e9bd..61b20e17e350 100644 --- a/sys/dev/amr/amr_pci.c +++ b/sys/dev/amr/amr_pci.c @@ -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"); |