Fixes incorrect processing in scst_tape_generic_dev_done() in case of errors

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1739 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-06-04 12:00:48 +00:00
parent 4bf0fb2871
commit 3ad3d2e3e7

View File

@@ -5516,6 +5516,9 @@ int scst_tape_generic_dev_done(struct scst_cmd *cmd,
* therefore change them only if necessary
*/
if (cmd->status != SAM_STAT_GOOD)
goto out;
switch (opcode) {
case MODE_SENSE:
case MODE_SELECT: