From: Santosh Y <santoshsy@gmail.com>
To: Akinobu Mita <mita@fixstars.com>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
Dolev Raviv <draviv@codeaurora.org>,
Sujit Reddy Thumma <sthumma@codeaurora.org>,
Vinayak Holikatti <vinholikatti@gmail.com>,
James Bottomley <JBottomley@parallels.com>
Subject: Re: [PATCH -next] ufs: fix source address of the read descriptor
Date: Thu, 29 Aug 2013 23:11:32 +0530 [thread overview]
Message-ID: <CALMYJDsHEf2+ebZog__2Z3Cht4aoqpdtdqrwbCao7OW2EWL9_Q@mail.gmail.com> (raw)
In-Reply-To: <1377702030-12901-1-git-send-email-mita@fixstars.com>
On Wed, Aug 28, 2013 at 8:30 PM, Akinobu Mita <mita@fixstars.com> wrote:
> When the query request with read descriptor opcode is completed, the
> descriptor is copied from response UPIU to the buffer that the caller
> has specified. Unfortunately the source address of the descriptor is
> broken due to the unnecessary address-of operator.
>
> Signed-off-by: Akinobu Mita <mita@fixstars.com>
> Cc: Dolev Raviv <draviv@codeaurora.org>
> Cc: Sujit Reddy Thumma <sthumma@codeaurora.org>
> Cc: Vinayak Holikatti <vinholikatti@gmail.com>
> Cc: Santosh Y <santoshsy@gmail.com>
> Cc: James Bottomley <JBottomley@Parallels.com>
> Cc: linux-scsi@vger.kernel.org
> ---
> drivers/scsi/ufs/ufshcd.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
> index a0f5ac2..7a319c6 100644
> --- a/drivers/scsi/ufs/ufshcd.c
> +++ b/drivers/scsi/ufs/ufshcd.c
> @@ -454,8 +454,7 @@ void ufshcd_copy_query_response(struct ufs_hba *hba, struct ufshcd_lrb *lrbp)
>
> /* Get the descriptor */
> if (lrbp->ucd_rsp_ptr->qr.opcode == UPIU_QUERY_OPCODE_READ_DESC) {
> - u8 *descp = (u8 *)&lrbp->ucd_rsp_ptr +
> - GENERAL_UPIU_REQUEST_SIZE;
> + u8 *descp = (u8 *)lrbp->ucd_rsp_ptr + GENERAL_UPIU_REQUEST_SIZE;
> u16 len;
>
> /* data segment length */
> --
> 1.8.3.1
>
Acked-by: Santosh Y <santoshsy@gmail.com>
--
~Santosh
prev parent reply other threads:[~2013-08-29 17:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-28 15:00 [PATCH -next] ufs: fix source address of the read descriptor Akinobu Mita
2013-08-29 17:41 ` Santosh Y [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=CALMYJDsHEf2+ebZog__2Z3Cht4aoqpdtdqrwbCao7OW2EWL9_Q@mail.gmail.com \
--to=santoshsy@gmail.com \
--cc=JBottomley@parallels.com \
--cc=draviv@codeaurora.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mita@fixstars.com \
--cc=sthumma@codeaurora.org \
--cc=vinholikatti@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).