From ce59ff90af4617beb803cdd6f463dd6a4a3d9cb8 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 13 May 2016 20:54:54 +0000 Subject: [PATCH] Fix a bug in r298340: "sim" was referenced after being unset. --- sys/dev/sym/sym_hipd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c index 5981e31288dc..8e6fc60f1341 100644 --- a/sys/dev/sym/sym_hipd.c +++ b/sys/dev/sym/sym_hipd.c @@ -8902,7 +8902,7 @@ static int sym_cam_attach(hcb_p np) /* * Establish our async notification handler. */ - if (xpt_register_async(AC_LOST_DEVICE, sym_async, sim, path) != + if (xpt_register_async(AC_LOST_DEVICE, sym_async, np->sim, path) != CAM_REQ_CMP) goto fail;