1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299694

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;