Since WB feature has been added, WB related sysfs entries can be accessedThis should be a bug fix IMO, and be dealt with similarly like
even when an UFS device does not support WB feature. In that case, the
descriptors which are not supported by the UFS device may be wrongly
reported when they are accessed from their corrsponding sysfs entries.
Fix it by adding a sanity check of parameter offset against the actual
decriptor length.s
ufshcd_is_wb_attrs or ufshcd_is_wb_flag.
Thanks,
Avri