Alan Stern 511833acfc SCSI: fix regression in scsi_send_eh_cmnd()
Commit ac61d1955934 (scsi: set correct completion code in
scsi_send_eh_cmnd()) introduced a bug.  It changed the stored return
value from a queuecommand call, but it didn't take into account that
the return value was used again later on.  This patch fixes the bug by
changing the later usage.

There is a big comment in the middle of scsi_send_eh_cmnd() which
does a good job of explaining how the routine works.  But it mentions
a "rtn = FAILURE" value that doesn't exist in the code.  This patch
adjusts the code to match the comment (I assume the comment is right
and the code is wrong).

This fixes Bugzilla #88341.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Андрей Аладьев <aladjev.andrew@gmail.com>
Tested-by: Андрей Аладьев <aladjev.andrew@gmail.com>
Fixes: ac61d19559349e205dad7b5122b281419aa74a82
Acked-by: Hannes Reinecke <hare@suse.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2014-12-30 08:59:13 -08:00
..
2014-11-20 09:11:10 +01:00
2014-11-24 20:01:28 +01:00
2014-08-26 09:35:54 +02:00
2014-12-04 09:57:13 +01:00
2014-08-08 15:57:29 -07:00
2014-12-04 09:58:33 +01:00
2014-11-24 16:13:18 +01:00
2014-11-24 20:01:28 +01:00
2014-07-17 22:07:38 +02:00
2014-11-20 09:11:11 +01:00
2014-07-17 22:07:37 +02:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2014-11-24 16:13:16 +01:00
2014-11-20 09:11:10 +01:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:27 -04:00
2014-08-08 15:57:29 -07:00
2013-04-09 14:13:15 -04:00
2014-07-17 22:07:35 +02:00
2014-11-20 09:11:10 +01:00
2014-10-07 21:29:18 -04:00
2014-11-24 20:01:28 +01:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2013-04-09 14:13:17 -04:00
2014-07-25 17:16:55 -04:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2014-11-12 11:15:57 +01:00
2014-11-24 20:01:28 +01:00
2014-11-12 11:16:11 +01:00
2014-07-17 22:07:39 +02:00
2014-11-24 20:01:28 +01:00
2014-11-12 11:15:57 +01:00
2014-11-24 20:01:28 +01:00
2012-09-14 17:59:29 +01:00
2014-11-20 09:11:15 +01:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:15 -04:00
2014-11-27 16:40:16 +01:00