RE: [PATCH] scsi: ufs: should not override buffer lengh

From: Avri Altman
Date: Mon Jan 11 2021 - 03:16:18 EST


>
> Sorry, typo corrected.
>
> Hi Jaegeuk,
>
> I think the problem is that func ufshcd_read_desc_param() is not
> expecting
> one access unsupported descriptors on RPMB LU.
Correct.
This is about wb introducing a new constraint: wb buffer is only allowed in lu 0..7.
And this is why, IMHO, the fix should be in ufs_is_valid_unit_desc_lun,
To include param offset, as it is only called in contingency of ufshcd_read_desc_param.

Thanks,
Avri