libata-scsi: sanitize ata_gen_ata_sense()
authorHannes Reinecke <hare@suse.de>
Mon, 4 Apr 2016 09:43:56 +0000 (11:43 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 4 Apr 2016 16:07:40 +0000 (12:07 -0400)
commit5e6acd1c8c4dc9a7c16208aeac3de09151ee6233
tree8152bc8108fa4f7c7652a1e2b8bbbc6f44c5b327
parente87fd28cf9a2d9018ac4b6dd92f0b417714bc18d
libata-scsi: sanitize ata_gen_ata_sense()

ata_to_sense_error() is called conditionally, so we should be
generating a default sense if the condition is not met.

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