diff options
author | Eric Anholt <eric@anholt.net> | 2007-10-09 12:13:49 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-10-09 12:13:49 -0700 |
commit | 7d809e149b59f22e24723db7360a4c38a9145b45 (patch) | |
tree | 5a8dce719735d89d39e9bd8408876949591d29c0 | |
parent | 042735df2aa5846fcabfd74c5f73877132728b25 (diff) |
FreeBSD: Fix unmap_range to return an error value.
-rw-r--r-- | src/freebsd_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/freebsd_pci.c b/src/freebsd_pci.c index be934a8..b703936 100644 --- a/src/freebsd_pci.c +++ b/src/freebsd_pci.c @@ -120,7 +120,7 @@ pci_device_freebsd_map_range(struct pci_device *dev, return err; } -static void +static int pci_device_freebsd_unmap_range( struct pci_device *dev, struct pci_device_mapping *map ) { @@ -144,7 +144,7 @@ pci_device_freebsd_unmap_range( struct pci_device *dev, close(fd); } - pci_device_generic_unmap_range(dev, map); + return pci_device_generic_unmap_range(dev, map); } static int |