LKML Archive on
help / color / mirror / Atom feed
From: Avri Altman <>
To: Alim Akhtar <>,
	"James E.J. Bottomley" <>,
	"Martin K. Petersen" <>,
	"" <>,
	"" <>,
	Evan Green <>, Bean Huo <>,
	Pedro Sousa <>
Cc: Avi Shchislowski <>,
	Alex Lemberg <>
Subject: RE: [PATCH] scsi: ufs: Check that space was properly alloced in copy_query_response
Date: Mon, 3 Jun 2019 08:37:42 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Hi Alim,
Thank you for your review.
Sorry for the late response - I was away for a couple of weeks.


> Subject: Re: [PATCH] scsi: ufs: Check that space was properly alloced in
> copy_query_response
> Hi Avri
> On 5/21/19 1:54 PM, Avri Altman wrote:
> > struct ufs_dev_cmd is the main container that supports device management
> > commands. In the case of a read descriptor request, we assume that the
> > proper space was allocated in dev_cmd to hold the returning descriptor.
> >
> > This is no longer true, as there are flows that doesn't use dev_cmd
> > for device management requests, and was wrong in the first place.
> >
> Can you please put some light on those flows? Are those platform
> specific? Just curious.
No, actually its quite simplistic.
__ufshcd_query_descriptor set dev_cmd.query.descriptor 
to point to its designated space before sending the read descriptor query,
and to null once it's done.
But it doesn't check it in ufshcd_copy_query_response when the query
returns from the device, which it should, as I indicated in the commit log.

> This change looks ok to me. I hope you have tested this patch.
Yes I did.

> Reviewed-by: Alim Akhtar <>

  reply	other threads:[~2019-06-03  8:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <>
2019-05-21  8:24 ` Avri Altman
2019-05-28  4:07   ` Alim Akhtar
2019-06-03  8:37     ` Avri Altman [this message]
2019-05-28  7:51   ` [EXT] " Bean Huo (beanhuo)
2019-06-05  2:11   ` Martin K. Petersen

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:

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

  git send-email \ \ \ \ \ \ \ \ \ \ \ \ \
    --subject='RE: [PATCH] scsi: ufs: Check that space was properly alloced in copy_query_response' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).