libata: sanitize ata_tf_read_block()
authorHannes Reinecke <hare@suse.de>
Mon, 4 Apr 2016 09:43:57 +0000 (11:43 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 4 Apr 2016 16:07:40 +0000 (12:07 -0400)
commitcffd1ee991c566bca937392cfacdafbe3b7b58c6
treef4d01350ba01ddcadc90a3bb9508cd9880cc12f4
parent5e6acd1c8c4dc9a7c16208aeac3de09151ee6233
libata: sanitize ata_tf_read_block()

Return U64_MAX if ata_tf_read_block() could not decode the LBA
address, and do not set the information sense descriptor in
ata_gen_ata_sense() in these cases.

tj: s/(u64)-1/U64_MAX/

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-core.c
drivers/ata/libata-scsi.c
drivers/ata/libata.h