RE: [PATCH v4 3/5] scsi: ufs: fix potential access NULL pointer while memcpy

2020-06-02 Thread Avri Altman
ltman ; alim.akh...@samsung.com; > > asuto...@codeaurora.org; j...@linux.ibm.com; > > martin.peter...@oracle.com; stanley@mediatek.com; > > bean...@micron.com; bvanass...@acm.org; tomas.wink...@intel.com; > > c...@codeaurora.org > > Cc: linux-s...@vger.kernel.org; lin

RE: [PATCH v4 3/5] scsi: ufs: fix potential access NULL pointer while memcpy

2020-06-02 Thread Avri Altman
y@mediatek.com; > bean...@micron.com; bvanass...@acm.org; tomas.wink...@intel.com; > c...@codeaurora.org > Cc: linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v4 3/5] scsi: ufs: fix potential access NULL pointer while > memcpy > > CAUTION: This e

Re: [PATCH v4 3/5] scsi: ufs: fix potential access NULL pointer while memcpy

2020-06-02 Thread Bean Huo
hi Avri thanks review. On Mon, 2020-06-01 at 06:25 +, Avri Altman wrote: > Hi, > > > If param_offset is not 0, the memcpy length shouldn't be the > > true descriptor length. > > > > Fixes: a4b0e8a4e92b ("scsi: ufs: Factor out > > ufshcd_read_desc_param") > > Signed-off-by: Bean Huo > >

RE: [PATCH v4 3/5] scsi: ufs: fix potential access NULL pointer while memcpy

2020-06-01 Thread Avri Altman
Hi, > If param_offset is not 0, the memcpy length shouldn't be the > true descriptor length. > > Fixes: a4b0e8a4e92b ("scsi: ufs: Factor out ufshcd_read_desc_param") > Signed-off-by: Bean Huo > --- > drivers/scsi/ufs/ufshcd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

[PATCH v4 3/5] scsi: ufs: fix potential access NULL pointer while memcpy

2020-05-31 Thread Bean Huo
From: Bean Huo If param_offset is not 0, the memcpy length shouldn't be the true descriptor length. Fixes: a4b0e8a4e92b ("scsi: ufs: Factor out ufshcd_read_desc_param") Signed-off-by: Bean Huo --- drivers/scsi/ufs/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git