From d2a2ccbc65219578d1e66549caf6f243136e7626 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Fri, 13 May 2016 18:55:03 +0000 Subject: [PATCH] Fix FCP_CMD LENGTH mask in ATIO7 IOCB. This caused "long IU length (16384) ignored" errors following by others. MFC after: 2 weeks --- sys/dev/isp/isp_target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/isp/isp_target.c b/sys/dev/isp/isp_target.c index c6af888ba73..07c9b59f1fc 100644 --- a/sys/dev/isp/isp_target.c +++ b/sys/dev/isp/isp_target.c @@ -169,7 +169,7 @@ isp_target_notify(ispsoftc_t *isp, void *vptr, uint32_t *optrp) * Check for and do something with commands whose * IULEN extends past a single queue entry. */ - len = at7iop->at_ta_len & 0xfffff; + len = at7iop->at_ta_len & 0x0fff; if (len > (QENTRY_LEN - 8)) { len -= (QENTRY_LEN - 8); isp_prt(isp, ISP_LOGINFO, "long IU length (%d) ignored", len);