diff options
author | 2019-10-22 14:27:08 +0800 | |
---|---|---|
committer | 2019-10-24 20:34:10 -0400 | |
commit | 0cf9f4e547cebb5f5d2d046437c71ddcc8ea4a39 (patch) | |
tree | 741faaddd2164a0a17f01fab377e4d5bf372026e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | scsi: target: cxgbit: Fix cxgbit_fw4_ack() (diff) | |
download | wireguard-linux-0cf9f4e547cebb5f5d2d046437c71ddcc8ea4a39.tar.xz wireguard-linux-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/1571725628-132736-1-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions