diff options
author | jhb <jhb@FreeBSD.org> | 2014-10-10 19:12:04 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-10-10 19:12:04 +0000 |
commit | 3528154dd45c4d89e5523e5ac883c71f3392f2d7 (patch) | |
tree | b14344090c008c128d42f61f654821eda7b13a85 /sys/dev/cx/if_cx.c | |
parent | 4cb4e287c6e3b9f3ec21e2fd4733d8b136475d82 (diff) | |
download | FreeBSD-src-3528154dd45c4d89e5523e5ac883c71f3392f2d7.zip FreeBSD-src-3528154dd45c4d89e5523e5ac883c71f3392f2d7.tar.gz |
Don't pass RF_ALLOCATED to bus_alloc_resource().
Diffstat (limited to 'sys/dev/cx/if_cx.c')
-rw-r--r-- | sys/dev/cx/if_cx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c index 360e1f6..2327403 100644 --- a/sys/dev/cx/if_cx.c +++ b/sys/dev/cx/if_cx.c @@ -410,8 +410,7 @@ static int cx_is_free_res (device_t dev, int rid, int type, u_long start, { struct resource *res; - if (!(res = bus_alloc_resource (dev, type, &rid, start, end, count, - RF_ALLOCATED))) + if (!(res = bus_alloc_resource (dev, type, &rid, start, end, count, 0))) return 0; bus_release_resource (dev, type, rid, res); |