git: 40990d54834b - main - cam: save parent_dev in xpt_bus_register

Warner Losh imp at FreeBSD.org
Mon Jun 28 22:23:59 UTC 2021


The branch main has been updated by imp:

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

commit 40990d54834bb319eb3d3b5e7192d799b41946fc
Author:     Warner Losh <imp at FreeBSD.org>
AuthorDate: 2021-06-28 21:55:02 +0000
Commit:     Warner Losh <imp at FreeBSD.org>
CommitDate: 2021-06-28 21:55:02 +0000

    cam: save parent_dev in xpt_bus_register
    
    Reviewed by:            scottl@
    Sponsored by:           Netflix
    Differential Revision:  https://reviews.freebsd.org/D30846
---
 sys/cam/cam_xpt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index d2aa5952459d..81d5d98fb9d4 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -4024,6 +4024,7 @@ xpt_bus_register(struct cam_sim *sim, device_t parent, u_int32_t bus)
 	new_bus->flags = 0;
 	new_bus->refcount = 1;	/* Held until a bus_deregister event */
 	new_bus->generation = 0;
+	new_bus->parent_dev = parent;
 
 	xpt_lock_buses();
 	sim->path_id = new_bus->path_id =


More information about the dev-commits-src-main mailing list