This is an MFC of 205712.

D'oh- isp_handle_index' logic was reversed (not used in FreeBSD).
This commit is contained in:
mjacob 2010-04-05 18:36:47 +00:00
parent d6399780a8
commit 54d9759401

View File

@ -294,10 +294,10 @@ uint32_t
isp_handle_index(ispsoftc_t *isp, uint32_t handle)
{
if (!ISP_VALID_HANDLE(isp, handle)) {
return (handle & ISP_HANDLE_CMD_MASK);
} else {
isp_prt(isp, ISP_LOGERR, "%s: bad handle 0x%x", __func__, handle);
return (ISP_BAD_HANDLE_INDEX);
} else {
return (handle & ISP_HANDLE_CMD_MASK);
}
}