From c6435ff3dddd74ce395eacb97aceffd8ebbe16e4 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Sun, 26 Feb 2006 22:40:56 +0000 Subject: [PATCH] propagate role of device for ISP_GET_PDBINFO --- sys/dev/isp/isp_freebsd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c index 4ff8eabc89c6..a1535d305172 100644 --- a/sys/dev/isp/isp_freebsd.c +++ b/sys/dev/isp/isp_freebsd.c @@ -351,6 +351,7 @@ ispioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags, struct thread *t ISP_LOCK(isp); lp = &FCPARAM(isp)->portdb[ifc->loopid]; if (lp->valid) { + ifc->role = lp->roles; ifc->loopid = lp->loopid; ifc->portid = lp->portid; ifc->node_wwn = lp->node_wwn;