scsi: ufs: core: Warn if the request tag is truncated
authorBart Van Assche <bvanassche@acm.org>
Wed, 15 Nov 2023 19:33:47 +0000 (11:33 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 25 Nov 2023 00:23:48 +0000 (19:23 -0500)
commitdb80df77025ee0a5e6e089cc2f2b0c4b97867bea
tree214a9effbbf83b49ec0cd1108add631321fdf04a
parent10b53db2db8dfda84b25833043f2b63123572af6
scsi: ufs: core: Warn if the request tag is truncated

ufshcd_prepare_utp_scsi_cmd_upiu() only uses the lowest eight bits of
lrbp->task_tag. Issue a runtime warning if this results in truncation.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20231115193359.2262044-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c