Clear result before requesting XPT_PATH_INQ.
Many SIMs doesn't fill maxio field yet.
This commit is contained in:
parent
1535d59d7c
commit
2ec0f2e186
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200295
@ -673,6 +673,7 @@ cdregister(struct cam_periph *periph, void *arg)
|
||||
softc->quirks = CD_Q_NONE;
|
||||
|
||||
/* Check if the SIM does not want 6 byte commands */
|
||||
bzero(&cpi, sizeof(cpi));
|
||||
xpt_setup_ccb(&cpi.ccb_h, periph->path, CAM_PRIORITY_NORMAL);
|
||||
cpi.ccb_h.func_code = XPT_PATH_INQ;
|
||||
xpt_action((union ccb *)&cpi);
|
||||
|
Loading…
Reference in New Issue
Block a user