]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: ufs: core: Zero utp_upiu_req at the beginning of each command
authorAvri Altman <avri.altman@wdc.com>
Sat, 21 Sep 2024 06:23:06 +0000 (09:23 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 4 Oct 2024 02:00:08 +0000 (22:00 -0400)
commit43abe48d95fee8816f79e085ea9c86e4f65607e7
tree3b5e3eda75fcd5d61ac6a1e9e04a89aa76101202
parent71ef4e6b05ae0a1b6bd8ba864815b01e041dfd10
scsi: ufs: core: Zero utp_upiu_req at the beginning of each command

This patch introduces a previously missing step: zeroing the 'utp_upiu_req'
structure at the beginning of each upiu transaction. This ensures that the
upiu request fields are properly initialized, preventing potential issues
caused by residual data from previous commands.

While at it, re-use some of the common initializations for query and
command upiu.

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