aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorCan Guo <[email protected]>2020-10-21 22:59:00 -0700
committerMartin K. Petersen <[email protected]>2020-11-18 22:53:56 -0500
commit1699f980d87fb678a669490462cf0b9517c1fb47 (patch)
tree8c3a22eee400dc62cddc0a0653e19652cc01293a /tools/perf/scripts/python/exported-sql-viewer.py
parentf36199355c64a39fe82cfddc7623d827c7e050da (diff)
scsi: ufs: Fix unexpected values from ufshcd_read_desc_param()
WB-related sysfs entries can be accessed even when an UFS device does not support the feature. 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. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Asutosh Das <[email protected]> Acked-by: Daejun Park <[email protected]> Signed-off-by: Can Guo <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions