From aaa202a3985d74d57e6c17864a58f3e34fa11fb3 Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Tue, 8 Apr 2008 09:11:10 +0000 Subject: [PATCH] Fix bug when checking tmd flags against bidirectional transfer. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@332 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla_isp/linux/isp_scst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qla_isp/linux/isp_scst.c b/qla_isp/linux/isp_scst.c index 648a6afcf..8a4fc4f92 100644 --- a/qla_isp/linux/isp_scst.c +++ b/qla_isp/linux/isp_scst.c @@ -435,7 +435,7 @@ rx_loop: int len; dir = SCST_DATA_NONE; - if (tmd->cd_flags & CDF_BIDIR) { + if ((tmd->cd_flags & CDF_BIDIR) == CDF_BIDIR) { dir = SCST_DATA_UNKNOWN; } else if (tmd->cd_flags & CDF_DATA_OUT) { dir = SCST_DATA_WRITE;