Commit 43abe48
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>1 parent 71ef4e6 commit 43abe48
1 file changed
Lines changed: 22 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2762 | 2762 | | |
2763 | 2763 | | |
2764 | 2764 | | |
2765 | | - | |
2766 | 2765 | | |
2767 | 2766 | | |
2768 | 2767 | | |
| |||
2865 | 2864 | | |
2866 | 2865 | | |
2867 | 2866 | | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
2868 | 2887 | | |
2869 | 2888 | | |
2870 | 2889 | | |
| |||
2998 | 3017 | | |
2999 | 3018 | | |
3000 | 3019 | | |
3001 | | - | |
3002 | | - | |
3003 | | - | |
3004 | | - | |
3005 | 3020 | | |
3006 | | - | |
3007 | | - | |
3008 | | - | |
3009 | | - | |
3010 | | - | |
| 3021 | + | |
3011 | 3022 | | |
3012 | 3023 | | |
3013 | 3024 | | |
| |||
3035 | 3046 | | |
3036 | 3047 | | |
3037 | 3048 | | |
3038 | | - | |
3039 | | - | |
3040 | | - | |
| 3049 | + | |
3041 | 3050 | | |
3042 | | - | |
3043 | 3051 | | |
3044 | 3052 | | |
3045 | 3053 | | |
| |||
0 commit comments