ata: fixup ATA_PROT_NODATA
authorHannes Reinecke <hare@suse.de>
Thu, 14 Jul 2016 00:05:46 +0000 (09:05 +0900)
committerTejun Heo <tj@kernel.org>
Thu, 14 Jul 2016 14:47:20 +0000 (10:47 -0400)
commitbd18bc04caeff361a4fff477224fa5b5fe5ce603
tree544e3179262a8134b93726bd84597e9c02118d41
parentb38d4d85b89c68b2748a5e225185073424510486
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>
drivers/ata/libata-core.c
drivers/ata/libata-eh.c