diff options
author | Peter Wang <peter.wang@mediatek.com> | 2023-10-03 10:20:02 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-19 23:08:57 +0200 |
commit | 9f6b391b04868058ca2863f5845e59b0b5f70df2 (patch) | |
tree | 4fc05d1a64ed23a2a1025ade2af4e2db4308aa70 | |
parent | 97306abdeaca8b75cae44e0eca928c78d72dadbd (diff) | |
download | linux-stable-9f6b391b04868058ca2863f5845e59b0b5f70df2.tar.gz linux-stable-9f6b391b04868058ca2863f5845e59b0b5f70df2.tar.bz2 linux-stable-9f6b391b04868058ca2863f5845e59b0b5f70df2.zip |
scsi: ufs: core: Correct clear TM error log
commit a20c4350c6a12405b7f732b3ee6801ffe2cc45ce upstream.
The clear TM function error log status was inverted.
Fixes: 4693fad7d6d4 ("scsi: ufs: core: Log error handler activity")
Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Link: https://lore.kernel.org/r/20231003022002.25578-1-peter.wang@mediatek.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/ufs/core/ufshcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index b4e3f14b9a3d..6ba4ef2c3949 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -6749,7 +6749,7 @@ static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag) mask, 0, 1000, 1000); dev_err(hba->dev, "Clearing task management function with tag %d %s\n", - tag, err ? "succeeded" : "failed"); + tag, err < 0 ? "failed" : "succeeded"); out: return err; |