All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: Alan Stern <stern@rowland.harvard.edu>,
	James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: "Андрей Аладьев" <aladjev.andrew@gmail.com>,
	"SCSI development list" <linux-scsi@vger.kernel.org>,
	"USB list" <linux-usb@vger.kernel.org>
Subject: Re: [PATCH] SCSI: fix regression in scsi_send_eh_cmnd()
Date: Fri, 21 Nov 2014 16:57:00 +0100	[thread overview]
Message-ID: <546F60CC.10703@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1411211040110.4139-100000@iolanthe.rowland.org>

On 11/21/2014 04:44 PM, Alan Stern wrote:
> 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
> CC: Hannes Reinecke <hare@suse.de>
> CC: <stable@vger.kernel.org>
> 
That is correct.

Acked-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2014-11-21 15:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-21 15:44 [PATCH] SCSI: fix regression in scsi_send_eh_cmnd() Alan Stern
2014-11-21 15:57 ` Hannes Reinecke [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=546F60CC.10703@suse.de \
    --to=hare@suse.de \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=aladjev.andrew@gmail.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.