mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 20:51:27 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user