Set the rid for the resoruce obtained from rman_reserve_resource.

This commit is contained in:
Warner Losh 2006-04-20 04:21:27 +00:00
parent 2f443d2d8f
commit c3f861f491
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157897

View file

@ -1015,6 +1015,7 @@ acpi_alloc_resource(device_t bus, device_t child, int type, int *rid,
goto out;
/* Copy the bus tag and handle from the pre-allocated resource. */
rman_set_rid(res, *rid);
rman_set_bustag(res, rman_get_bustag(rle->res));
rman_set_bushandle(res, rman_get_start(res));