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