(cam_rescan): Do not reference ccb->ccb_h.path in CAM_DEBUG call before
it is initialized; use path instead. This change fixes a panic when using atapicam in conjunction with CAMDEBUG, which has been described under kern/103602. Thanks to Josh Carroll <josh.carroll@gmail.com> for providing the traces that allowed identifying this problem. PR: kern/103602 MFC after: 1 week
This commit is contained in:
parent
65835cf341
commit
4647ebfc01
@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 2001-2003 Thomas Quinot <thomas@cuivre.fr.eu.org>
|
||||
* Copyright (c) 2001-2007 Thomas Quinot <thomas@cuivre.fr.eu.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -807,7 +807,7 @@ cam_rescan(struct cam_sim *sim)
|
||||
return;
|
||||
}
|
||||
|
||||
CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("Rescanning ATAPI bus.\n"));
|
||||
CAM_DEBUG(path, CAM_DEBUG_TRACE, ("Rescanning ATAPI bus.\n"));
|
||||
xpt_setup_ccb(&ccb->ccb_h, path, 5/*priority (low)*/);
|
||||
ccb->ccb_h.func_code = XPT_SCAN_BUS;
|
||||
ccb->ccb_h.cbfcnp = cam_rescan_callback;
|
||||
|
Loading…
x
Reference in New Issue
Block a user