aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2021-07-21 20:34:27 -0700
committerMartin K. Petersen <[email protected]>2021-08-02 21:43:57 -0400
commit4728ab4a8e64902b0b0c5238ed09128ea20aa5ce (patch)
tree07829d2b9d676a9c10338686737ec3976dda218c /tools/perf/scripts/python
parent8a686f26eaa4b8a5c494b6b69e8a97815e3ffb82 (diff)
scsi: ufs: Remove ufshcd_valid_tag()
scsi_add_host() allocates shost->can_queue tags. ufshcd_init() sets shost->can_queue to hba->nutrs. In other words, we know that tag values will less than hba->nutrs. Hence remove the checks that verify that blk_get_request() returns a tag less than hba->nutrs. This check was introduced by commit 14497328b6a6 ("scsi: ufs: verify command tag validity"). Keep the tag >= 0 check because it helps to detect use-after-free issues. Link: https://lore.kernel.org/r/[email protected] CC: Avri Altman <[email protected]> Cc: Alim Akhtar <[email protected]> Reviewed-by: Bean Huo <[email protected]> Reviewed-by: Daejun Park <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions