Fix a bug in r298340: "sim" was referenced after being unset.

This commit is contained in:
Mark Johnston 2016-05-13 20:54:54 +00:00
parent d3ffaee8e6
commit ce59ff90af

View File

@ -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;