RE: [RFC PATCH 3/5] scsi: ufs: Introduce HPB module
From: Avri Altman
Date: Sun Jun 07 2020 - 03:10:43 EST
> +static int ufshpb_get_dev_info(struct ufs_hba *hba,
> + struct ufshpb_dev_info *hpb_dev_info,
> + u8 *desc_buf)
> +{
> + int ret;
How about here, before doing anything, check that the descriptors are in proper size?
Thanks,
Avri