git: f03a2e7b59d9 - main - macio: Set resource map size

From: Justin Hibbits <jhibbits_at_FreeBSD.org>
Date: Thu, 11 Apr 2024 02:08:54 UTC
The branch main has been updated by jhibbits:

URL: https://cgit.FreeBSD.org/src/commit/?id=f03a2e7b59d98629bc9a81882ce7ca534bd4f224

commit f03a2e7b59d98629bc9a81882ce7ca534bd4f224
Author:     Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2024-04-11 01:42:31 +0000
Commit:     Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2024-04-11 02:05:38 +0000

    macio: Set resource map size
    
    PR:             278278
    Fixes:          af081ec6f7cf ("powerpc: powermac: Use bus_generic_rman_*")
---
 sys/powerpc/powermac/macio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/powerpc/powermac/macio.c b/sys/powerpc/powermac/macio.c
index b3d9e9f73f25..8b96f56ad25f 100644
--- a/sys/powerpc/powermac/macio.c
+++ b/sys/powerpc/powermac/macio.c
@@ -686,6 +686,7 @@ macio_map_resource(device_t bus, device_t child, struct resource *r,
 	    length, args.memattr);
 	if (map->r_vaddr == NULL)
 		return (ENOMEM);
+	map->r_size = length;
 	map->r_bustag = &bs_le_tag;
 	map->r_bushandle = (bus_space_handle_t)map->r_vaddr;
 	return (0);