From 18f7dda4f8857c624bed57e706bcee394e7614ef Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 17 Oct 2019 22:01:47 +0100 Subject: [PATCH] Fix boolean operation in SCSI sense. --- linux/scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/scsi.c b/linux/scsi.c index 3fb15ea..9710b9d 100644 --- a/linux/scsi.c +++ b/linux/scsi.c @@ -67,7 +67,7 @@ int32_t linux_send_scsi_command(int device_fd, ret = ioctl(device_fd, SG_IO, &hdr); - *sense |= (hdr.info & SG_INFO_OK_MASK) != SG_INFO_OK; + *sense = (hdr.info & SG_INFO_OK_MASK) != SG_INFO_OK; // TODO: Manual timing if duration is 0 *duration = hdr.duration; *sense_len = hdr.sb_len_wr;