mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[SCSI] scsi_debug: fix duplicate dif_errors increment
It is unnecessary to increase dif_errors in dif_verify(), because the
caller will increment it when dif_verify() detects failure.
This bug was introduced by commit beb40ea42b
("[SCSI] scsi_debug:
reduce duplication between prot_verify_read and prot_verify_write")
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
11ddceca99
commit
c613d061ce
1 changed files with 0 additions and 1 deletions
|
@ -1780,7 +1780,6 @@ static int dif_verify(struct sd_dif_tuple *sdt, const void *data,
|
||||||
be32_to_cpu(sdt->ref_tag) != ei_lba) {
|
be32_to_cpu(sdt->ref_tag) != ei_lba) {
|
||||||
pr_err("%s: REF check failed on sector %lu\n",
|
pr_err("%s: REF check failed on sector %lu\n",
|
||||||
__func__, (unsigned long)sector);
|
__func__, (unsigned long)sector);
|
||||||
dif_errors++;
|
|
||||||
return 0x03;
|
return 0x03;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue