diff options
author | Hannes Reinecke <hare@suse.de> | 2016-07-14 09:05:46 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-07-14 10:47:20 -0400 |
commit | bd18bc04caeff361a4fff477224fa5b5fe5ce603 (patch) | |
tree | 544e3179262a8134b93726bd84597e9c02118d41 /drivers/ata/libata-eh.c | |
parent | b38d4d85b89c68b2748a5e225185073424510486 (diff) | |
download | op-kernel-dev-bd18bc04caeff361a4fff477224fa5b5fe5ce603.zip op-kernel-dev-bd18bc04caeff361a4fff477224fa5b5fe5ce603.tar.gz |
ata: fixup ATA_PROT_NODATA
The taskfile protocol is a numeric value, and can not be ORed. Currently
this is harmless as the protocol is always zeroed before, but if it ever
has a non-zero value the ORing would create incorrect results.
Signed-off-by: Hannes Reinecke <hare@suse.de>
[hch: updated patch description]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r-- | drivers/ata/libata-eh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 61dc7a9..7832e55 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c @@ -3177,7 +3177,7 @@ static void ata_eh_park_issue_cmd(struct ata_device *dev, int park) } tf.flags |= ATA_TFLAG_DEVICE | ATA_TFLAG_ISADDR; - tf.protocol |= ATA_PROT_NODATA; + tf.protocol = ATA_PROT_NODATA; err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0); if (park && (err_mask || tf.lbal != 0xc4)) { ata_dev_err(dev, "head unload failed!\n"); |