aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHannes Reinecke <[email protected]>2017-10-02 16:26:37 +0200
committerMartin K. Petersen <[email protected]>2017-10-17 00:57:12 -0400
commitb8018b973c7cefa5eb386540130fa47315b8e337 (patch)
tree453e07d09aa09247f2b0b1d556ba607398d312ae /tools/perf/scripts/python
parent588c902b338d1d80323711c2bcf35f9a8499c831 (diff)
scsi: scsi_devinfo: fixup string compare
When checking the model and vendor string we need to use the minimum value of either string, otherwise we'll miss out on wildcard matches. And we should take care when matching with zero size strings; results might be unpredictable. With this patch the rules for matching devinfo strings are as follows: - Vendor strings must match exactly - Empty Model strings will only match if the devinfo model is also empty - Model strings shorter than the devinfo model string will not match Fixes: 5e7ff2c ("SCSI: fix new bug in scsi_dev_info_list string matching") Signed-off-by: Hannes Reinecke <[email protected]> Reviewed-by: Alan Stern <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions