Fixed the following issues found by Vladislav Bolkhovitin via source reading:
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sun, 1 Nov 2009 17:01:08 +0000 (17:01 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sun, 1 Nov 2009 17:01:08 +0000 (17:01 +0000)
commit31902fb40576db23f248a54ffd14416cccbc1282
treeabee02dcd7f0c0efede460cf36c9f3e5478f752f
parente09e9397829cd30575abdac93580abae692bad74
Fixed the following issues found by Vladislav Bolkhovitin via source reading:
- Inserted tests such that ib_dma_unmap_sg() is never called with a NULL
  second argument.
- Fixed race conditions triggered by ioctx->state manipulations.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1307 d57e44dd-8a1f-0410-8b47-8ef2f437770f
srpt/src/ib_srpt.c
srpt/src/ib_srpt.h