Repository navigation
Commit 73eba2b
scsi: ufs: fix arguments order some trace calls
Colin Ian King reported that with commit 7ff5ab4 ("scsi: ufs: add
tracing support") static analysis is reporting that we may have swapped
arguments on calls to:
trace_ufshcd_runtime_resume,
trace_ufshcd_runtime_suspend,
trace_ufshcd_system_suspend,
trace_ufshcd_system_resume,
and trace_ufshcd_init
Where:
hba->uic_link_state is passed to dev_state
hba->curr_dev_pwr_mode is passed to link_state
This wasn't intentional so it's a bug. This change fixed this bug.
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Acked-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 2e48e34 commit 73eba2b
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5803 | 5803 | | |
5804 | 5804 | | |
5805 | 5805 | | |
5806 | | - | |
| 5806 | + | |
5807 | 5807 | | |
5808 | 5808 | | |
5809 | 5809 | | |
| |||
6817 | 6817 | | |
6818 | 6818 | | |
6819 | 6819 | | |
6820 | | - | |
| 6820 | + | |
6821 | 6821 | | |
6822 | 6822 | | |
6823 | 6823 | | |
| |||
6850 | 6850 | | |
6851 | 6851 | | |
6852 | 6852 | | |
6853 | | - | |
| 6853 | + | |
6854 | 6854 | | |
6855 | 6855 | | |
6856 | 6856 | | |
| |||
6878 | 6878 | | |
6879 | 6879 | | |
6880 | 6880 | | |
6881 | | - | |
| 6881 | + | |
6882 | 6882 | | |
6883 | 6883 | | |
6884 | 6884 | | |
| |||
6919 | 6919 | | |
6920 | 6920 | | |
6921 | 6921 | | |
6922 | | - | |
| 6922 | + | |
6923 | 6923 | | |
6924 | 6924 | | |
6925 | 6925 | | |
| |||
0 commit comments