diff options
| author | Xiang Chen <[email protected]> | 2019-10-22 06:27:08 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-10-25 00:34:10 +0000 |
| commit | 0cf9f4e547cebb5f5d2d046437c71ddcc8ea4a39 (patch) | |
| tree | 741faaddd2164a0a17f01fab377e4d5bf372026e /tools/perf/scripts/python/syscall-counts.py | |
| parent | scsi: target: cxgbit: Fix cxgbit_fw4_ack() (diff) | |
| download | kernel-0cf9f4e547cebb5f5d2d046437c71ddcc8ea4a39.tar.gz kernel-0cf9f4e547cebb5f5d2d046437c71ddcc8ea4a39.zip | |
scsi: sd: define variable dif as unsigned int instead of bool
Variable dif in function sd_setup_read_write_cmnd() is the return value of
function scsi_host_dif_capable() which returns dif capability of disks. If
define it as bool, even for the disks which support DIF3, the function
still return dif=1, which causes IO error. So define variable dif as
unsigned int instead of bool.
Fixes: e249e42d277e ("scsi: sd: Clean up sd_setup_read_write_cmnd()")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Xiang Chen <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
